react-native-invoke-app icon indicating copy to clipboard operation
react-native-invoke-app copied to clipboard

Android 10 not invoke when app from background or killed?

Open tienviip opened this issue 5 years ago • 3 comments

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?

tienviip avatar Apr 29 '20 10:04 tienviip

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"

RomanSuvorov avatar Jun 17 '20 11:06 RomanSuvorov

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.

maitzeth avatar Jun 24 '20 21:06 maitzeth

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

khoitruongg avatar Aug 14 '20 10:08 khoitruongg