EddyVerbruggen / nativescript-plugin-firebase

:fire: NativeScript plugin for Firebase
https://firebase.google.com
MIT License
1.01k stars 448 forks source link

Using dynamic links on social #579

Open idoadse opened 6 years ago

idoadse commented 6 years ago

Im trying to use dynamic links to achieve a mechanims similar to Firebase.invites, but on other sources (facebook, whatsapp, messenger and more).

I have tried implementing it in the following way:

  1. I have installed the following plugin https://www.npmjs.com/package/nativescript-social-share that supports sharing on social media
  2. I have followed the firebase.Invites tutorial and added the following code to my androidmanifest.xml under activity:
  3. I have added callback to handle dynamic links on my firebase initializations: firebase,onDynamicLinkCallback: function (result) { console.log("Dynamic Link: " + result+ ", matchConfidence: "+ result); }
  4. I have also added a call to firebase.getInvitation() that logs its input
  5. I have created a url (e.g. myawsomedomain.com/example) and sent it via whatsapp (and any other source)
  6. I have clicked the received link on the same device (device having the app installed)

I encounter the following symptoms:

Debugging some of the plugin code yeild that there is no firebase dynamic link.

What is the way to achieve my requested flow? I have been looking at this PR that I thought was supposed to solve the none-called callbacks issue, but update of my plugin to latest version seemed not to fix the issue.

I have also checked this issue but it seemed to happen there only on iOS.

If this is not supported for some reason maybe it will be possible to allow sendInvite to not open any contact list, but only return the url of the invite so I could send it myself.

Thanks for the help

idoadse commented 6 years ago

@EddyVerbruggen Do you have any inputs on this one? Thanks in advance