You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// you might want to do following things when receiving this event:
415
415
// - Start playing ringback if it is an outgoing call
416
416
});
@@ -567,7 +567,7 @@ class RNCallKeepExample extends React.Component {
567
567
onDTMFAction= (data) => {
568
568
let { digits, callUUID } = data;
569
569
// Called when the system or user performs a DTMF action
570
-
}
570
+
};
571
571
572
572
audioSessionActivated= (data) => {
573
573
// you might want to do following things when receiving this event:
@@ -587,6 +587,33 @@ class RNCallKeepExample extends React.Component {
587
587
}
588
588
```
589
589
590
+
## Receiving a call when the application is not reachable.
591
+
592
+
In some case your application can be unreachable :
593
+
- when the user kill the application
594
+
- when it's in background since a long time (eg: after ~5mn the os will kill all connections).
595
+
596
+
To be able to wake up your application to display the incoming call, you can use [https://github.com/ianlin/react-native-voip-push-notification](react-native-voip-push-notification) on iOS or BackgroundMessaging from [react-native-firebase](https://rnfirebase.io/docs/v5.x.x/messaging/receiving-messages#4)-(Optional)(Android-only)-Listen-for-FCM-messages-in-the-background).
597
+
598
+
You have to send a push to your application, like with Firebase for Android and with a library supporting PushKit pushes for iOS.
599
+
600
+
### PushKit
601
+
602
+
Since iOS 13, you'll have to report the incoming calls that wakes up your application, like in your `AppDelegate.m` :
0 commit comments