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

backToForeground doesn't work on Android 9. #227

Open
2 of 3 tasks
maitzeth opened this issue Jun 25, 2020 · 9 comments
Open
2 of 3 tasks

backToForeground doesn't work on Android 9. #227

maitzeth opened this issue Jun 25, 2020 · 9 comments

Comments

@maitzeth
Copy link

Bug report

  • I've checked the example to reproduce the issue.

  • Reproduced on:

  • Android

  • iOS

Description

Hello, I'm having a problem. Right know I'm testing the new method called backToForeground, it works perfectly on Android 7 and 8, but now Im testing on Android 9 (Emulated on Android Student) and the app is not waking up.
There is any way to fix this?

Steps to Reproduce

Versions

- Callkeep: 3.0.15
- React Native: 0.61.5
- iOS: 
- Android: API 29 (Android 9)
- Phone model: Pixel Pixel 2 (Emulated)
@maitzeth maitzeth changed the title backToForeground doesn't work on Android 10. backToForeground doesn't work on Android 9. Jun 25, 2020
@fedebraintly
Copy link

Hi, there!

I'm having the same issue. Also, it isn't working on Android 10.

Any ideas?

Thanks!

@manuquentin
Copy link
Contributor

Working fine here on a Pixel 1 with Android 10

@maitzeth
Copy link
Author

maitzeth commented Jun 30, 2020

@manuquentin I managed to work adding this permission on the Manifest.

<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>

Before that I was not able to make it work in Android 9 and 10

@codetheweb
Copy link

@maitzeth thanks, that worked for me.

@stephanoparaskeva
Copy link

stephanoparaskeva commented Jul 5, 2020

<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>

Before that I was not able to make it work in Android 9 and 10

I already have this in my androidManifest.xml and backToForeground() doesnt work for me on Android 7 Samsung S6

@hanleiZoro
Copy link

Hi, this issues is solved?

@manuquentin
Copy link
Contributor

manuquentin commented Aug 12, 2020

We've experienced the same issue on a Samsung Galaxy A5 (2016).
It appears that backToForeground works as expected (when calling it in a AppState.addEventListener('change', ...) the app comes on foreground).

But Samsung have a fork of ConnectionService that prevents a lot of things... we've recently noticed that we can't trigger clicks in the Samsung ConnectionService UI with calls to adb shell input keyevent ... in our functional tests (calls that works on Pixel devices).
I think Samsung has forbidden applications to be reordered above ConnectionService UI ...

We've try to display a local notification, so the user will click on it and display the app, but Android displays it as a small icon...

We'll continue our work on #251 to work around this issue.

@imansalhi
Copy link

imansalhi commented Aug 15, 2020

@manuquentin maybe this can be useful for your progress
and this

@HarshitPadalia
Copy link

We've experienced the same issue on a Samsung Galaxy A5 (2016).
It appears that backToForeground works as expected (when calling it in a AppState.addEventListener('change', ...) the app comes on foreground).

But Samsung have a fork of ConnectionService that prevents a lot of things... we've recently noticed that we can't trigger clicks in the Samsung ConnectionService UI with calls to adb shell input keyevent ... in our functional tests (calls that works on Pixel devices).
I think Samsung has forbidden applications to be reordered above ConnectionService UI ...

We've try to display a local notification, so the user will click on it and display the app, but Android displays it as a small icon...

We'll continue our work on #251 to work around this issue.

this can be solved if we use self managed connection service? if yes then I can help you for implement self managed connection service

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

8 participants