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

Fix Invoke App From Background Android 10 #15

Open
naufanituharish opened this issue Aug 25, 2020 · 10 comments
Open

Fix Invoke App From Background Android 10 #15

naufanituharish opened this issue Aug 25, 2020 · 10 comments

Comments

@naufanituharish
Copy link

Hello there,, thanks for the library,, it working awesome for incoming call screen,.
I found solution for your problems, to invoke incoming call screen from locked screen in android 10, you could use full screen intent, i use it with voximplant library and it works with locked screen and killed state app,
You can follow this:
https://github.com/voximplant/android-demos/tree/master/audiocall
and using the notificationhelper.java in this link:
https://github.com/voximplant/android-demos/blob/master/audiocall/src/main/java/com/voximplant/demos/audiocall/utils/NotificationHelper.java
And also use foreground service check in those repo,.
Since I'm not android expert and new in RN so I could not make PR for this case,.

Hope this information can help you,.

Regards,
Naufan harish

@kimho
Copy link

kimho commented Aug 27, 2020

@naufanituharish Could you please show me your code?

@bkdev98
Copy link
Owner

bkdev98 commented Nov 13, 2020

Hi @naufanituharish, I try using your fork repo and get an exception ForegroundCheck is not initialized. Did you add additional code in your project?

@bkdev98
Copy link
Owner

bkdev98 commented Nov 13, 2020

I see in voximplant code call ForegroundCheck.init(this) but I'm not sure where to put it yet 😅

@Bilal112
Copy link

Bilal112 commented Nov 17, 2020

it's working you need to get permission or overlay

add this pkg also to get overlay permission
https://www.npmjs.com/package/rn-android-overlay-permission

@bkdev98
Copy link
Owner

bkdev98 commented Nov 17, 2020

Yes I'm also using it. But actually, some Xiaomi/Oppo devices need additional "Display pop-up windows while running in the background" permission to make it work. So I'm finding some replacement solutions.

Here for detail https://stackoverflow.com/questions/59645936/displaying-popup-windows-while-running-in-the-background

@Bilal112
Copy link

I also using the Xiaomi set and its working

@naufanituharish
Copy link
Author

Hi @naufanituharish, I try using your fork repo and get an exception ForegroundCheck is not initialized. Did you add additional code in your project?

Hi @bkdev98 sorry for very late reply currently I'm working on other project, have you solved it?? if not, give me a few days to review my code,. because long time not touch my previous work. need to know the flow,. 😅😅

@bkdev98
Copy link
Owner

bkdev98 commented Dec 17, 2020

Yeah I think I'm fine with the rn-android-overlay-permission solution for now 😄

@AliSaeed090
Copy link

AliSaeed090 commented Dec 13, 2021

@bkdev98 @Bilal112
I am using rn-android-overlay-permission , its working fine when app is in background state, Not working when app is quit or killed. any solution when app is in killed or quit state?

@fukemy
Copy link

fukemy commented Nov 21, 2022

we need provide autostart permission first, this lib does not

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

6 participants