MikeMon
-
Content Count
129 -
Joined
-
Last visited
-
Days Won
1
Posts posted by MikeMon
-
-
Any help anyone?
-
3 hours ago, sjordi said:Instead of moving that file, isn't it better to put it to the right place right away and deal with a flag in a DB to know whether it has been initialized or not?
Hi Steve
I want to use my approach for files that I want to forcefully overwrite. If I use your approach, I can't overwrite an existing file on the device if it is newer.
-
Hi
I've added a file to the deployment manager which is being copied to a specific folder on iOS and Android. When the user runs the app for the first time, I'm copying that file to another folder on the device and then deleting the original file. This is the problem: while using the app, the file is being deleted OK. But every time the app is run again, the file is reappearing.
How can I permanently delete a file from a specific folder?
Kindly advise
-
I changed my Interbase connection from IBLite to IBTogo. Now, if I run the app without the "-cleaninstall" in the Run parameters, it works fine on the device. If I create a bundle (32 & 64-bit) and upload it to the Google Play Store, I'm getting the same error: "product INTERBASE is not licensed". Have in mind that this is ONLY if the app is already installed and is updating; not when the user is installing it for the first time.
I'm out of ideas.
-
Hi
After upgrading to Delphi Rio 10.3.3, I have an issue with IBLite licensing on Android devices (haven't checked on iOS). The issue is the following. When a user downloads the app for the first time, it runs perfectly fine. When they update the app (if they have it already installed on their phone), they get the "product INTERBASE is not licensed" exception. In the same way, during development, if I do a "clean install", everything works fine. If I don't I'm getting the same error.
Most probably, there is a file on the existing app that is not being overwritten during the update because it is newer then the file on the updated app. The files needed for IBLite are the following:
- reg_iblite.txt
- ibconfig
- admin.ib
- license.txt
- oss_license_notice.txt
- interbase.msg
I even changed the date on my PC, modified the files above to have a future datestamp and tried again. Same error.
Is there something I'm missing?
Kindly advise
-
Nevermind. I used the "Export and Upload a key and certificate from a Java Keystore" choice.
-
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?
-
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
Use an Xcode Storyboard to Provide the App’s Launch Screen
in Cross-platform
Posted
In the latest iOS App requirements and guidelines, one of the requirements says:
"Apps for iPhone or iPad must ..... and use an Xcode storyboard to provide the app’s launch screen."
Does this mean that a launch image is not enough and we need to create a splash screen inside the app? or this is already handled by Delphi?