Skip to content
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

Android 10 not invoke when app from background or killed? #10

Open
tienviip opened this issue Apr 29, 2020 · 3 comments
Open

Android 10 not invoke when app from background or killed? #10

tienviip opened this issue Apr 29, 2020 · 3 comments

Comments

@tienviip
Copy link

I integrated it works well when android device <10, when I test on android device> 10, it cannot invoke the app, when in the background or killed, is anyone like me?

@RomanSuvorov
Copy link

RomanSuvorov commented Jun 17, 2020

Hi, @tienviip
I have this issue too. Test this lib with android v.8 and it works perfect (if add flag NEW_ACTIVITY).
But with android v.10 it works only in background mode.

@vicke4, hi
Have you any advise for newest versions of android?

I changed Intent flag (activityIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)) and added few lines to AndroidManifest.xml
android:showWhenLocked="true" android:turnScreenOn="true"

@maitzeth
Copy link

Im having this same problem. I added android:showWhenLocked="true" android:turnScreenOn="true" and changed activityIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK) and the app doesnt open when is killed from Android 10.

@vicke4 This repo is not maintained anymore :/ is a really useful package.

@khoitruongg
Copy link

Hi guys, this issue only happened on Android Q because it has some new restrictions about opening an app from background. I've resolved it. Please follow this post :
https://stackoverflow.com/questions/59419653/cannot-start-activity-background-in-android-10-android-q

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants