I need help to get the URL which I create from the firebase Dynamic Link dashboard. I searched for just 2 days and I can't find anything. Here is a picture that I want to mentioned.
I created the deep link from the dashboard and then I wrote something like below. I want to get the url which I circled in the pictured.
FirebaseDynamicLinks.getInstance()
.getDynamicLink(getIntent())
.addOnSuccessListener(this, new OnSuccessListener<PendingDynamicLinkData>() {
@Override
public void onSuccess(PendingDynamicLinkData pendingDynamicLinkData) {
// Get deep link from result (may be null if no link is found)
Uri deepLink = null;
if (pendingDynamicLinkData != null) {
deepLink = pendingDynamicLinkData.getLink();
Log.e("SplashActivity", "deepLink " + deepLink);
// Log.e("SplashActivity", pendingDynamicLinkData.zzbyk().getString("Url"));
}
}
})
.addOnCompleteListener( this, new OnCompleteListener<PendingDynamicLinkData>() {
@Override
public void onComplete(@NonNull Task<PendingDynamicLinkData> task) {
if (task.getResult() != null)
Log.e("SplashActivity", " task ");
}
})
.addOnFailureListener(this, new OnFailureListener() {
@Override
public void onFailure(@NonNull Exception e) {
Log.e("Splash", "getDynamicLink:onFailure", e);
}
});
With the above code, I can just catch the deep link. Any suggest?