//Global method for get deeplink
public static String getDeeplinkFromIntent(Intent intent) {
String deepLink = BatchUtils.deepLinkFromIntent(intent);
if(deepLink == null && intent.getData() != null)
deepLink = intent.getData().toString();
//Method util to get deeplink from a push notification from Batch
private static String deepLinkFromIntent(Intent intent) {
if(intent != null && intent.getExtras() != null) {
BatchPushPayload pushData = BatchPushPayload.payloadFromBundle(intent.getExtras());
if(pushData.hasDeeplink())
deepLink = pushData.getDeeplink();