Skip to content
This repository was archived by the owner on Apr 4, 2023. It is now read-only.
This repository was archived by the owner on Apr 4, 2023. It is now read-only.

Using dynamic links on social #579

@idoadse

Description

@idoadse

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

  • I'm currently implementing only android app (will later this month support iphones as well).

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:

  • the app is opened succesfully
  • no callback is called:
    a) send invitation mentions no invitations is found
    b) onDynamicLinkCallback is never triggered (I have also tried to register it on the firebase.init - not succesful either)

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions