On a previous version of RNN I had this code in AppDelegate.m
- (void)pushRegistry:(PKPushRegistry *)registry didReceiveIncomingPushWithPayload:(PKPushPayload *)payload forType:(PKPushType)type withCompletionHandler:(void (^)(void))completion {
// Process the received push
[RNNotifications didReceiveRemoteNotification:payload.dictionaryPayload];
// Retrieve information like handle and callerName here
NSString *uuid = [payload.dictionaryPayload valueForKey:@"callUUID"];
NSString *callerName = [payload.dictionaryPayload valueForKey:@"fromName"];
NSString *handle = [payload.dictionaryPayload valueForKey:@"fromNumber"];
[RNCallKeep reportNewIncomingCall:uuid handle:handle handleType:@"number" hasVideo:false localizedCallerName:callerName fromPushKit: YES];
completion();
}
In the new version, the docs say I shouldn't do this and let the bridged functions do their work.
If I send a pushkit push while the app is in the foreground, my new listener works, if the apps in the background, it doesnt, If the app has been killed, the app doesn't open and doesnt run the listener.
So I'm a little confused as to how this is meant to work within the constraints of pushkit in ios13 and needing to call callkit within it - in the above code theres a completion handler but in the pushkit event from RNN v3, theres no completion handler (like there is for the other forms of push)
Thanks!
It could just be that my device had done "bad things" and apple had blacklisted the app on the device.
ios13 pushkit/callkit is such a mess.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
Don't close this please bot
Same issue, any luck solving this @danjenkins?
Nope :( currently switched to another lib :(
@yogevbd wanted your advice on this issue -- is this on your roadmap by any chance?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
The issue has been closed for inactivity.
Why? I'm still waiting for an answer.
On Fri, 17 Apr 2020, 02:37 stale[bot], notifications@github.com wrote:
Closed #473 https://github.com/wix/react-native-notifications/issues/473
.—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/wix/react-native-notifications/issues/473#event-3242491145,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAB3LLKX7WEGQOCTGD6V2ITRM6XEBANCNFSM4KNRP37Q
.
Can this be reopned please?
I resolved this by using another library https://github.com/react-native-webrtc/react-native-voip-push-notification for pushkit and using this one for normal notifications on ios and android.
I resolved this by using another library https://github.com/react-native-webrtc/react-native-voip-push-notification for pushkit and using this one for normal notifications on ios and android.
@basitsattar Is it possible to receive VoIP push notifications just to do background updates (e.g. database updates)?
I don't want to use VoIP features.
@Jojr nope