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

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

example #9

Closed johnwnowlin closed 4 years ago

johnwnowlin commented 7 years ago

I am new to the IOS react land. I have react-native-push-notifications work but am trying to add voip. Is there a simple example available somewhere? My main question right now is what Add PushKit delegate method means in the appDelegate.m.

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{

...

/* Add PushKit delegate method */
ianlin commented 7 years ago

Hi, I would recommend you to read this.

Basically to add PushKit delegate in your AppDelegate.m is something similar to adding normal push notification delegates.

Hope it helps!

johnwnowlin commented 7 years ago

Thank you, I am receiving VOIP notifications now, except for the initial notification that occurs when the app is awoken from forced closed. I can see that the app is receiving the notification <Notice>: [RNVoipPushNotificationManager] didReceiveIncomingPushWithPayload payload.dictionaryPayload = { , but the VoipPushNotification "notification" event is not triggered. I see a comment about 'popInitialNotification', is there something I have to set to receive the initial notification?

glocore commented 5 years ago

@johnwnowlin Were you able to solve for this? I'm faced with the exact same problem. There are multiple other issues stating the same problem, like #16, #14 or #15(comment).