This puzzles me ...

This puzzles me ...
Why would an Anroid App that is running fine in Debug and Release Mode crash when I deploy it to the AppStore and install it from there - on the very same device?
This is what happens to me at the moment with one of my apps.
I goes to Nirvana right after the splashscreen, but only if I install it from the appstore.
The problem is that I have no idea how to troubleshoot the issue.
Has anybody ever experienced similar?
It is no general problem with the app in the appstore on another device this does not happen and I can install the app from the appstore and it runs.
The device where it is not running from the appstiore has an Android 6.0 and the device where it is running has an Android 5.0 installed. So I guess it has to do with this difference?

Comments

  1. Yes - it works. The drawwback is, that before tracing the error with logcat I gave the now working APK a try in the Play Store. Because this works now - I am not 100% sure what was the problem.
    But for others who might have a similar problem, I want to tell you what I did, so that it is now working.

    1. I checked the installed packages in the Android Tools app under the Delphi 10.2 Start Menu Folder. I figured that I had not installed way at the bottom of the treeview in the Extras Folder the Google Play Services, Google APK Expansion Library, Google Play Licensing API and GooglePlay Billing Library.
    2. I saw that in the project structure of the project in the libraries folder the apk-expansion.dex.jar was "anti-highlighted" indicating it to be missing. I could not find any jar named such (I know I could build it via the java files in the Android Tools install, but since I do not need that expansion functionality I solved the problem as follows). I wanted to deactivate the expansion jar, which was not possible, because you cannot deactivate missing jars. So I added a file o the folder and named it apk-expansion.dex.jar, then I could deactivate it. (This seems to be a bug in the Android.manifest or in the Delphi 10.2. release, since the jar should be in the release folder of the install, which it is not - right?)
    3.Then ... I checked the priviliges again. I have now the following privileges in the working APK In-App-Purchases, Identity, Position, Photos/Media/Files, DeviceID and Caller Information. Which is way more than I think I need. I can only imagine this privileges are needed because of the standard manifest template coming with Delphi 10.2. I know I can change the manifest template and the classes.dex - this would be the next reasonable thing to do. But I rather think about what in-app-purchases I might offer :-)

    Thach Ngo is probably right, it could have been permission problems. But I do not know for sure.

    Thanks a lot to everybody here - for helping me.
    The Delphi Community rules ;-)

    Since my app is not ready for prime time yet - I better do not post the play store link here :-)

    ReplyDelete
  2. Could it be a faulty key for google services like google maps? It caused my app to crash.

    ReplyDelete
  3. Gert Scholten I did not change any keys and now it is working (see above), so in my situation this was not the problem. Good that you poin it out here that this can be the problem though. Thanks.

    ReplyDelete

Post a Comment