

MikeMon
-
Content Count
147 -
Joined
-
Last visited
-
Days Won
1
Posts posted by MikeMon
-
-
5 hours ago, Hans♫ said:I haven't investigated their REST API, so I don't know how much functionality it implements compared to the SDK.
Tx Hans and Dave
-
1 hour ago, Hans♫ said:I didn't answer this one because the steps to include the FB SDK is pretty much the same as mentioned in the GRIJJY blog. Though I never needed to fix anything regarding Delegates, so depending on your needs, this pretty long part can be skipped.
Also, my first implementation of the FB SDK was made in 2015-16, before anyone else had published solutions for it. My implementation is much simpler and focus only on the areas that I needed my self. Therefore it is not compatible with the GRIJJY source code.
However,
@MikeMon I'll be happy to share my headers and units to implement the Facebook API.
Hi Hans. Thank you for your answer. Have you seen Embarcadero's implementation in their documentation below?
http://docwiki.embarcadero.com/RADStudio/Rio/en/REST_Client_Library#Accessing_Facebook_API
Is that enough to use Facebook functionality in an app? e.g. login with facebook, etc...
-
-
11 hours ago, Dave Nottage said:I'm sure there is, since there's been a number of changes in the last 3 years. Check the changelog for v5, for example:
https://github.com/facebook/facebook-ios-sdk/blob/master/CHANGELOG.md
Hi Dave. Thank you for your answer. The link you sent doesn't seem to be for Delphi or Firemonkey. Any other links that you might be aware of?
-
The link https://blog.grijjy.com/2017/01/23/using-facebook-sdk-native-framework-for-ios-and-android-for-social-login-and-more-part-1/ and the GitHub repository https://github.com/grijjy/DelphiSocialFrameworks are 3 years old. Is there a newer way of using the Facebook API in Firemonkey (iOS and Android)?
-
The link https://blog.grijjy.com/2017/01/23/using-facebook-sdk-native-framework-for-ios-and-android-for-social-login-and-more-part-1/ and the GitHub repository https://github.com/grijjy/DelphiSocialFrameworks are 3 years old. Is there a newer way of using the Facebook API with Firemonkey (iOS and Android)?
-
Finally problem solved:
Copying the FireDAC.inc file to the project folder and altering it didn't work. However, altering it in the C:\Program Files (x86)\Embarcadero\Studio\xx.0\source\data\FireDAC folder solved the problem.
Thank you @Dave Nottage for your valuable assistance.
-
On 1/12/2020 at 10:38 PM, Dave Nottage said:There does not appear to be anything in the log that gives any clues as to why it hangs. This why it's important to also use the debugger and/or refine the code into a reproducible test case.
Hi Dave
After a million trial and errors, I found out that the issue is with TFDPhysSQLiteDriverLink. To replicate the issue, just drop a TFDPhysSQLiteDriverLink in the KastriFree EMBTFCMv2Demo and run it on iOS. No extra code needed. I've also tried the workaround posted by you in RSP-18329.
FYI, android has no problem.
I'm using Delphi 10.3.3 Enterprise.
-
12 hours ago, Dave Nottage said:Have you tried tracing the code via the debugger? Can you provide a reproducible example?
Hi Dave. I'm attaching the log from the XCode Console.
-
5 hours ago, Dave Nottage said:It presents the prompt every time you run it? Which app is this?
No. The first time I run the app, it's prompting me and then hanging. After that it is never prompting; just hanging.
The version of the app is not uploaded to the app store yet.
-
BTW, the error I'm getting is when I use the latest Firebase SDK 6.14. When I use 6.3 it's compiling fine. When I run the app, it's asking me if I want the app to send me notifications. When I click yes and every time I run the app after that it is hanging.
Not sure what I'm missing here.
-
Hi Dave
Thank you for the information. Following the information you gave, I've set up Firebase for iOS 64-bit. Everything compiles fine (but crashes on launch) without adding -ObjC to the "Options passed to the LD linker". When I add -ObjC to the "Options passed to the LD linker" I'm getting the following error (346 errors in fact) during compilation:
[DCC Error] E2597 ld: warning: dwarf DW_FORM_strp (offset=0xFFFFFFDC) is too big in c:\program files (x86)\embarcadero\studio\20.0\lib\iOSDevice64\Release\libibtogo.a(ail.o).
Any ideas on how to solve it?
-
Hi
Any latest tutorials or links on how to set up Firebase Push notifications on iOS?
-
10 hours ago, Dave Nottage said:And then there was light!!
Dave, this fixed the issue. Thank you very much for all the help!!
I added the below line to the <application> tag of the project's AndroidManifest.xml.
<uses-library android:name="org.apache.http.legacy" android:required="false" />
-
1
-
-
17 hours ago, Dave Nottage said:This line is interesting:
12-06 00:30:44.030: I/agamama.orderc(31926): Caused by: java.lang.ClassNotFoundException: Didn't find class "android.arch.lifecycle.LifecycleOwner" on path: DexPathList[[zip file "/data/app/cy.com.wagamama.ordercy-qsEct8E2Xh8zg2XEtOetZg==/base.apk"],nativeLibraryDirectories=[/data/app/cy.com.wagamama.ordercy-qsEct8E2Xh8zg2XEtOetZg==/lib/arm, /data/app/cy.com.wagamama.ordercy-qsEct8E2Xh8zg2XEtOetZg==/base.apk!/lib/armeabi-v7a, /system/lib, /system/vendor/lib]]
12-06 00:30:44.030: I/agamama.orderc(31926): Caused by: java.lang.ClassNotFoundException: Didn't find class "android.arch.lifecycle.LifecycleOwner" on path: DexPathList[[zip file "/data/app/cy.com.wagamama.ordercy-qsEct8E2Xh8zg2XEtOetZg==/base.apk"],nativeLibraryDirectories=[/data/app/cy.com.wagamama.ordercy-qsEct8E2Xh8zg2XEtOetZg==/lib/arm, /data/app/cy.com.wagamama.ordercy-qsEct8E2Xh8zg2XEtOetZg==/base.apk!/lib/armeabi-v7a, /system/lib, /system/vendor/lib]]
Because android.arch.lifecycle.LifecycleOwner has long been deprecated:
https://developer.android.com/reference/android/arch/lifecycle/LifecycleOwner
Is there perhaps some 3rd party library you're using that's expecting this class to be present? It may be present on the devices (for compatibility) that your app works on. Not sure if this is the root cause of your problem, but it might be worth looking at.
Hi Dave
The exception seems to be different everytime. I can't seem to figure out what the problem is. It works on some Android Pie devices and not on others. I've attached another log file that shows different entries leading to the crash.
-
3 hours ago, Dave Nottage said:Does your app perform any network calls at all? If your package is cy.com.wagamama.ordercy, the log line at 12-05 18:34:30.888 seems to indicate it is doing at least something network related, and appears to be the source of the crash.
HI Dave
Thank you for your answer.
Yes. The package is cy.com.wagamama.ordercy. The app does use network to communicate with a datasnap server, but even if I disable all network traffic, it is still crashing during startup.
I've attached a second log file without any datasnap calls.
-
Hi
I have an issue with an app crashing on some Android devices. The devices on which the app crashes are some Android 9 devices; although on other Android 9 devices the app works fine. The crash happens ONLY when the app is connected to the internet. When I disable the Wi-Fi, it doesn't crash. To test it, I run the app with the Wi-Fi disabled, it starts up fine. While the app is running I enable the Wi-Fi and the app crashes after a couple of seconds without me doing anything.
I've attached the Android log file if anyone could help me point out where the problem is.
Tx
-
1 hour ago, Lars Fosdal said:An alternative could be using a temp table for the inner select?
Hi Lars
Not possible. As a workaround, I created computed (calculated) fields and used them in the group by clause.
-
2
-
-
44 minutes ago, Lars Fosdal said:I've not used Interbase, but if follows std SQL, it could be something like this?
SELECT HIREDMONTH, EMPLOYEECOUNT FROM ( SELECT extract (month FROM HIRED_DATE) AS HIREDMONTH, count(*) AS EMPLOYEECOUNT FROM employee ) AS Table1 GROUP BY HIREDMONTH, EMPLOYEECOUNT
Hi Lars
Thank you for your answer again. Unfortunately, the derived table feature (nested select) was introduced in Interbase 2017. I'm still using Interbase XE3. Actually, after doing some research, expressions in the group by clause I mentioned above were also introduced in Interbase 2017.
-
Hi
In Interbase, does anybody know how to use an expression in the "group by" clause, e.g.:
select extract (month from HIRED_DATE) HIREDMONTH, count(*) EMPLOYEECOUNT from employee group by extract (month from HIRED_DATE)or
select extract (month from HIRED_DATE) HIREDMONTH, count(*) EMPLOYEECOUNT from employee group by 1
-
2 hours ago, Lars Fosdal said:In https://support.microsoft.com/en-us/help/201978/how-to-use-printer-device-fonts there are some clues to doing device font substitution, but if that doesn't work out, I am afraid that you have to raise the issue with the maker of the printer.
Hi Lars
Thank you for the link. I'm familiar with the info, but unfortunately, it doesn't help me.
Everything works fine except for the X position. The fonts are used normally and printed on the printer. The Y position works fine. The only problem is the X position. The latest driver X-POS 4.57 has the same problem even on Windows 7. An older driver Vendor Thermal Driver 3.2 works fine on Windows 7. They both use the same font: FontA11 or FontA1x1.
I've had other issues with some built-in fonts and thermal printers before, where the PageWidth, TextHeight and TextWidth functions don't return the correct values, but these things can be assigned programmatically. Whereas in the case of the X, there is nothing one can do.
-
8 minutes ago, Lars Fosdal said:Is there a TrueType version of the built in printer fonts available anywhere?
It could be that the MS canvas handling fails to get font info for the built in fonts, if the fonts don't exist in the Windows font registry.
Installing the TrueType may help?
Hi Lars
Thank you for your answer. There are no TT version of the POS printer fonts available.
FYI, the Y in the Printer.Canvas.TextOut and all other font functions work fine, e.g. Printer.Canvas.TextHeight and Printer.Canvas.TextWidth.
-
Hi
I use the "Printer.Canvas.TextOut(X, Y: integer; const Text: string)" procedure to print to a thermal pos printer. I have an issue with the X position when I use built-in printer fonts, e.g. "FontA11". When I use windows fonts, e.g. Arial, the X position works fine. Basically, with built-in fonts, the X value is being ignored whatever value it is being passed, i.e. TextOut(0, 0, 'Print Something') and TextOut(100, 0, 'Print Something') are printing at the EXACT same position.
The thermal printer driver I am using is "Thermal Printer Drivers 4.57". FYI, "Thermal Printer Drivers 3.0" worked fine but can't be used on Windows 10 computers.
Please, advise
-
10 minutes ago, Alexander Sviridenkov said:HTML Component Library contains HTML Label for VCL and all FMX platforms. This is the most powerful HTML label because it supports almost all HTML tags and CSS properties while others supports only small subset.
Hi Alexander
Thank you for your assistance.
Unfortunately, the HTML Component Library costs a lot. TMS is much cheaper with a lot of other components included. Are there any free solutions?
Android App Bundle Upload
in Cross-platform
Posted
Hi
In the Embarcadero Delphi Rio documentation on how to upload an app bundle to the Google Play Console (http://docwiki.embarcadero.com/RADStudio/Rio/en/Submitting_Your_Android_App_to_Google_Play#Android_App_Bundle_Support), in the "Let Google manage and protect your app signing key (recommended)" section, there is an option for "Let Google create and manage my app signing key (recommended)" option. This option doesn't exist on the Google Play Console. FYI, it is the first time I'm uploading an app bundle, but it is not the first release of my app.
What should I do in this case?