Hello, i'm having troubles with the "Open" command in Push Notifications.
When I send the notification, it appears but the "Open" command is not working - It does not redirect to where it should.
What am I missing? How should I format the open parameter for it to work? i'm trying with openOp/url and openURL/url. Any insight??
@_Manoj_Kumar_ @ParthaSarathy @Parvesh_Parmar @DavidKangni
Solved! Go to Solution.
Hello @CampaignerForLife
Could you please share how the deep link is configured in the APP? Are you using OOTB click action or using application variables for deep-linking?
If you are using the application variables for deeplink then the mobile developer will have to capture all those variables by OnMessageReceived function.
Here is an example:
public void onMessageReceived(RemoteMessage remoteMessage) {
Log.d(LOG_TAG, "From: " + remoteMessage.getFrom());
if (AEPMessagingService.handleRemoteMessage(this, remoteMessage)) {
// Campaign extension has handled the notification
} else {
// Handle notification from other sources
}
}
In this function, the app can check for click_action (in case of OOTB click action) or any other variable in case of application variables.
Mobile App will have to take this action of redirection or opening a URL. AEP Mobile SDK won't do this out of the box.
Hello @CampaignerForLife
Could you please share how the deep link is configured in the APP? Are you using OOTB click action or using application variables for deep-linking?
If you are using the application variables for deeplink then the mobile developer will have to capture all those variables by OnMessageReceived function.
Here is an example:
public void onMessageReceived(RemoteMessage remoteMessage) {
Log.d(LOG_TAG, "From: " + remoteMessage.getFrom());
if (AEPMessagingService.handleRemoteMessage(this, remoteMessage)) {
// Campaign extension has handled the notification
} else {
// Handle notification from other sources
}
}
In this function, the app can check for click_action (in case of OOTB click action) or any other variable in case of application variables.
Mobile App will have to take this action of redirection or opening a URL. AEP Mobile SDK won't do this out of the box.
How would it be with OOTB click action?
Thank you!!
Hello @CampaignerForLife
Even for OOTB Click function, it is apps responsibility to redirect the customer to a specific page. AEP Mobile SDK won't do this automatically.
Views
Likes
Replies