rn-heartbeat icon indicating copy to clipboard operation
rn-heartbeat copied to clipboard

Show modal if even RN project have closed

Open mdkamrulcse opened this issue 3 years ago • 6 comments

Hello, I have run your project which working fine, In my app I show modal popup when app is active or in use but when the app closed the popup is not working. can I show this modal popup with this service?

mdkamrulcse avatar Jul 04 '21 14:07 mdkamrulcse

Hello @mdkamrulcse.

The service created in this project has its own thread and it's not attached to the UI thread. As far as I know, there isn't any way to open a modal outside the app.

mathias5r avatar Jul 07 '21 12:07 mathias5r

can you let me please how can I do this type service which can connect with UI and user can see modal UI even app have closed? I am working for update user location in background and fire socket with the lat and long, and my plan is to accept user request even if user closed the app

mdkamrulcse avatar Jul 07 '21 12:07 mdkamrulcse

Have you tried to open your app from this service and then show to the user the modal?

mathias5r avatar Jul 07 '21 12:07 mathias5r

I have tried at headless task but this not opening if closed

mdkamrulcse avatar Jul 07 '21 12:07 mdkamrulcse

Have you tried this react-native-invoke-app?

mathias5r avatar Jul 07 '21 13:07 mathias5r

I see this repo have some issues with android 10

mdkamrulcse avatar Jul 07 '21 16:07 mdkamrulcse