...
Code Block |
---|
#pragma mark - Schemes - (BOOLvoid)applicationappoxee:(UIApplicationnonnull *)application openURL:(NSURL Appoxee *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation { [self handleScheme:url]; return YES; } - (BOOL)application:(UIApplication *)application openURL:(nonnull NSURL *)url options:(nonnull NSDictionary<NSString *,id> *)optionsappoxee handledRemoteNotification:(nonnull APXPushNotification *)pushNotification andIdentifer:(nonnull NSString *)actionIdentifier { [self handleScheme:url]; return YES; } - (void)handleScheme:(NSURL *)scheme { // 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/backgroundNSLog(@"Notification received"); } |
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 } |