Skip to content
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

read "payload" in JS #97

Open
nikolov9996 opened this issue Oct 10, 2022 · 1 comment
Open

read "payload" in JS #97

nikolov9996 opened this issue Oct 10, 2022 · 1 comment

Comments

@nikolov9996
Copy link

  [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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants