Versions Compared

Key

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

Deep-linking is a type of action that can be triggered when the user open the push notification. It provides the ability to open a specific page within the app.

  • Make sure that the developer understand that they need to define a URL scheme

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. Field can be sent in the payload of notification using apx_dpl key. Details for sending notification can located here - <If DMC provides any API link using which clients can send pushes. Then that link will come here>

 


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

Expand
titleiOS [Objective-C]
Code Block
AppDelegate.m
 
#pragma mark - Schemes

 
- (void)appoxee:(nonnull Appoxee *)appoxee handledRemoteNotification:(nonnull APXPushNotification *)pushNotification andIdentifer:(nonnull NSString *)actionIdentifier {
 
// Here the special field will be received in extra parameters in "pushNotification"
    NSLog(@"URL - %@", [pushNotification.extraFields objectForKey:@"apx_dpl"]);
}
 
 
Expand
titleiOS [Swift]
Code Block
#pragma mark - Schemes

 
func appoxee(_ appoxee: Appoxee, handledRemoteNotification pushNotification: APXPushNotification, andIdentifer actionIdentifier: String) {
   // Here the special field will be received in extra parameters in "pushNotification"
    print("URL - \(pushNotification.extraFields["apx_dpl"])")
}

...