Deep-Linking with iOS SDK 4.0.14 or later for Appoxee Standalone
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 -Â Trigger Push Message API (Direct)- Based on Template ( Message for single end user)
Example on how to use the sent key in Appoxee iOS SDK is mentioned below:
Objective-C
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"]);
}
Â
Â
Swift
#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"])")
}