Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Appoxee SDK will trigger deep linking in the same manner the iOS will trigger deep linking (Using URL Schemes to Communicate with Apps).

 


Deep linking can be sent using the following:

  • apx_dpl is supplied as an extra field key, with a valid URL scheme value
  • Sending a push action with a deep link action.

 

...


Example on how to use the sent key in Appoxee iOS SDK is mentioned below:

Objective-C

Code Block
AppDelegate.m
 
#pragma mark - Schemes

 
- (void)appoxee:(nonnull Appoxee *)appoxee handledRemoteNotification:(nonnull APXPushNotification *)pushNotification andIdentifer:(nonnull NSString *)actionIdentifier {
    NSLog(@"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) {
    

// Here the special field will be received in extra parameters in "pushNotification"
    NSLog(@"URL - %@", [pushNotification.extraFields objectForKey:@"apx_dpl"]);
}
 
 

Swift

Code Block
#pragma mark - Schemes

 
func appoxee(_ appoxee: Appoxee, handledRemoteNotification pushNotification: APXPushNotification, andIdentifer actionIdentifier: String) {
   // YourHere implementationthe ofspecial afield urlwill scheme.be received in extra  // 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/backgroundparameters in "pushNotification"
    print("URL - \(pushNotification.extraFields["apx_dpl"])")
}