...
Code Block |
---|
#pragma mark - Schemes
- (void)appoxee:(nonnull Appoxee *)appoxee handledRemoteNotification:(nonnull APXPushNotification *)pushNotification andIdentifer:(nonnull NSString *)actionIdentifier {
NSLog(@"Notification received");
}
// Here the special field will be received in extra parameters in "pushNotification" |
Swift
Code Block |
---|
#pragma mark - Schemes func application(application: UIApplication, openURL url: NSURL, sourceApplication: String?, annotation: AnyObject) -> Bool { handleScheme(url) return true } func application(app: UIApplication, openURL url: NSURL, options: [String : AnyObject]) -> Bool { handleScheme(url) return true } func handleScheme(scheme: NSURL) { // Your implementation of a url scheme. // When the app is in the foreground and a notification arrives, the SDK does not display the notification // Make sure you set the behaviour to handle cases when app is in the foreground/background } |