I am using Firebase deep-linking for content sharing in my android app and it working perfectly. Now I want to use Firebase App invite to invite friends to download and signup on my app. Now I have some problems.
1) Firebase App invite provides only two way to invite friends (SMS and Email). But I also want to share with WhatsApp, FB etc.
2) If above case not possible then if I am using deep-linking with the custom parameter with App play store link then how to get those parameters on the app first launch after installing from play store?
Please suggest.
1) Firebase App invite provides only two way to invite friends (SMS and Email). But I also want to share with WhatsApp, FB etc.
yes, it's possible to share via whatsApp, fb etc, Actually once you generate the link you can create your own share intent and share that link, you can create the links manually also refer this
2) If above case not possible then if I am using deep-linking with the custom parameter with App play store link then how to get those parameters on the app first launch after installing from play store?
use pendingDynamicLinkData that you get in your callback to get the those custom parameters you set.
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();
//get your properties here
}
}
})
.addOnFailureListener(this, new OnFailureListener() {
@Override
public void onFailure(@NonNull Exception e) {
Log.w(TAG, "getDynamicLink:onFailure", e);
}
});
you can query it even after a while too as a second option. https://firebase.google.com/docs/reference/dynamic-links/analytics