Jump to content

MikeMon

Members
  • Content Count

    129
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by MikeMon


  1. 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


  2. 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.


  3. 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


  4. 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. 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... 


  6. 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.


  7. 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.


  8.  

    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.


  9. 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.


  10. 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?
      


  11. 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.

    log4.txt


  12. 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.

    log2.txt


  13. 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

    log.txt

×