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

React Native VoIP Push Notification - Currently iOS only
ISC License
213 stars 83 forks source link

read "payload" in JS #97

Open nikolov9996 opened 1 year ago

nikolov9996 commented 1 year 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 1 year ago

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