-
Notifications
You must be signed in to change notification settings - Fork 109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
App Stuck on relaunching first time from icon in Android #53
Comments
@haris008 : Please use launch mode as "Single Task" in main activity of android manifest. This issue will be gone. |
@bhatti-waqas I have the same issue, but when clicking on android Back button in step 2 above, tried you solution and unfortunately it didn't work for me. Is there something else I can try to support also this case ? |
@tamirwd: Can you please make sure closing splash screen code i.e |
@bhatti-waqas actually it's not. so I need to detect that the app is re-opened and call this method ? but I thought the splash screen should not even appear in this case no ? |
@tamirwd: Yes, you are right. actually I am not very good with android life cycle. I am an ios developer. |
@bhatti-waqas ok, I used AppState.addEventListener to detect when app is resumed, then I call SplashScreen.close again and it works ! thanks. |
@Chetan8488 : put below code in onCreate() method of SplashActivity. if (!isTaskRoot()
|
@tamirwd , can you, please, provide more details about your solution? Thanks |
Step 1 : Install app - Splash shows and close as expected
Step 2 : put app in background by pressing home button
Step : open app from launcher icon, it is stucked at splash screen.
After closing app, it works okay. Only happens on fresh install.
The text was updated successfully, but these errors were encountered: