-
-
Notifications
You must be signed in to change notification settings - Fork 61
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
Incoming call screen is not opening from background push listener. #5
Comments
I am facing the same problem , IncomingCall is working perfectly when my app is in foreground. But it doesn't want to trigger from the background. I am using firebase to send notification and i am reciving all data while in background but IncomingCall wont display.
any solution for that ? thanks in advance Update : I just tested it on Android 8 and everything works perfectly. But when i start it on android 9 or 10 nothing happens |
In android > 9 you had to set autostart and display pop-up window permissions manually to make it works in background. |
@bkdev98 I tested it on redmi Android 8 phone and it's not working in background. |
@@maloni991 I used the react-native-invoke-apphttps://www.npmjs.com/package/react-native-invoke-app to open app from background and killed state. From firebase background message listeners I am calling invokeApp method with data argument. And from "appInvoked" Listener calling IncomingCall.display method. It's working fine on Android 8,9 and 10. |
@bkdev98 any update on background issue? |
@anjandaffo did you get the solution for this? |
@fachreza73 I fixed the issue with using another package https://www.npmjs.com/package/react-native-invoke-app together. From firebase background message listeners I am calling invokeApp method with data argument. And from "appInvoked" Listener calling IncomingCall.display method. It's working fine on Android 8,9 and 10. |
i just follow the example project and its working. you need to import function that trigger the thanks for the example @bkdev98 |
i only experience this in release build.. UPDATE: I have two xiaomi phones.. same model and android version but the other one works even the app is in the background and the other one isn't.. |
Update:
|
I just released version 2 of the library which believed fixed this bug so I gonna close it here. Feel free to reopen or create new issue if you still got this issue. |
When app is in foreground IncomingCall.display(id, "Toothie", "test"); is working properly.
But when app is in background incoming call screen is not showing. I am getting the push in background and log is printing.
I am using the react-native-notifications library to receive push.
Notifications.events().registerNotificationReceivedBackground(
(notification,completion) => {
const { title, body } = notification.payload;
console.log("Android push notification received in background", notification, title, body);
const id = uuid()
IncomingCall.display(id, "Toothie", "test");
});
the console log is getting print when push is coming in the background. but incoming call is not showing.
The text was updated successfully, but these errors were encountered: