SINManagedPushDelegate
Objective-C
@protocol SINManagedPushDelegate <NSObject>
Swift
protocol SINManagedPushDelegate : NSObjectProtocol
SINManagedPushDelegate
-
Tells the delegate that a push notification was received. The push notification is a VoIP push notification.
This callback can be invoked on any thread, and payload handling (i.e., reporting the incoming call to CallKit) shouldn’t be dispatched on other queues, to avoid a risk of termination (see https://developers.sinch.com/docs/in-app-calling/ios/push-notifications-callkit/#callkit).
Declaration
Objective-C
- (void)managedPush:(SINManagedPush *)managedPush didReceiveIncomingPushWithPayload:(NSDictionary *)payload forType:(NSString *)pushType;
Swift
func managedPush(_ managedPush: SINManagedPush!, didReceiveIncomingPushWithPayload payload: [AnyHashable : Any]!, forType pushType: String!)
Parameters
managedPush
managed push instance that received the push notification
payload
The dictionary payload that the push notification carried.
pushType
SINPushTypeVoIP