I am using Sinch SDK to make voice call into my app and it is working fine when app is in foreground or terminated. But it is not working properly when app is in background. Sample App is working well provided with Sinch SDK. The only difference with Sample of My App is using OneSignal SDK additionally for push notification of other functionalities of my App.
So my question is
If user tap the push notification when app is in background then SINManagedPushDelegate's function
(void)managedPush:(id<SINManagedPush>)unused
didReceiveIncomingPushWithPayload:(NSDictionary *)payload
forType:(NSString *)pushType
{
}
is not called.
Any help would be greatly appreciated. Thanks
Sinch provide 2 types of push notification - Standard APNS and VoIP push. If you use standard APNS for Sinch incoming call and use OneSignal SDK together to handle push notification of other parts of App's feature then push notification is not working. You should use VoIP push notification with PushKit. I've used Pushkit and push notification delegate is successfully called. Should present local notification when app is in background to let user know incoming call.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.