react-native-webrtc / react-native-voip-push-notification

React Native VoIP Push Notification - Currently iOS only
ISC License
215 stars 84 forks source link

read "payload" in JS #97

Open nikolov9996 opened 2 years ago

nikolov9996 commented 2 years ago
  [RNCallKeep reportNewIncomingCall:uuid handle:handle handleType:@"generic" hasVideo:false localizedCallerName:callerName fromPushKit: YES payload:nil];

I need to get data from payload in the JS part of the app when the app is "killed" I can get it when the app is Foregraund or Background but I need it when the app is starting up from a VoIP

I have tried with RNNCallKeep - didDisplayIncomingCall but it only works when app is fore or background mode, when the app is killed it do not trigger.

thanhchuongbmd commented 2 years ago

Check docs here, the payload is set in Appdelegate.m: https://github.com/react-native-webrtc/react-native-callkeep#pushkit