Closed m1ga closed 21 hours ago
@prashantsaini1 @hansemannn you can see the issue in your live app too: close/kill the app and use the play store to search for your app and launch it with the "open" button. It will show the splash screen, that moves out to the right and the first window will move in from the left. With the PR it will fade from splashscreen to the window, like a normal start from the launcher.
Also got feedback by another client that it fixes the launch behavior when starting it from the play store.
Just tested out the PR and find the fix majorly working as we are now explicitly telling intent to choose only the required app package, rather than finding from all and launching it. The easy way to reproduce this issue is to open the native app info page on long press the app icon and then opening the app from there. It also creates two launcher activities, one being blank. Notifications and intent filters also works fine.
This is a tricky one:
When I launch my apps from the home screen I most of the time have this during start: splash screen/icon and then it moves to the left and my app is starting:
Bildschirmaufnahme_20241102_124139.webm
It doesn't happen when you launch it from the normal app launcher. And it doesn't happen for all apps and even some only do that from the first home screen and not from the 2nd. Super strange!
Looks like the issue is in the
filterEquals(intent)
part here: https://github.com/tidev/titanium-sdk/blob/master/android/titanium/src/java/org/appcelerator/titanium/TiRootActivity.java#L263When I dump the intent content the first one is:
and the second one is:
It is still the same BUT
pkg
is added in one and not the other depending on where you launch it from.The fix is: just adding the package name to both intents so they are always there so the check won't fail when one of the launch intents has that and the other doesn't.