Reputation: 612
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?
Upvotes: 2
Views: 2977
Reputation: 2504
Example of debug page for a link that includes iOS App information https://test3p.app.goo.gl/?link=http://www.google.com&isi=585027354&ibi=com.google.AppInvitesSample.dev&d=1 When you configured your link with iOS parameters you should see something similar. If you add Android parameters, you will see Android branch expanded as well.
When creating Firebase Dynamic Link ensure you filled sections "Define link behavior for iOS" and "Define link behavior for Android". For your link https://ysep8.app.goo.gl/HuKx it looks that you left those sections unfilled.
Example of section "Define link behavior for iOS":
Upvotes: 1