Deep-linking - is a type of action of when the user open the push notification. It aprovide the ability to open a spesific 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), when apx_dpl is supplied as an extra field key, with a URL scheme value, or by sending a push action with a deep link action.
Code Block |
---|
#pragma mark - Schemes
- (BOOL)application:(UIApplication *)application openURL:(NSURL *)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> *)options
{
[self handleScheme:url];
return YES;
}
- (void)handleScheme:(NSURL *)scheme
{
// Your implementation of a url scheme.
} |