reactjsfirebasefirebase-dynamic-linksreferrals

Making a referral reward system using reactJS


I am trying to create a referral system using reactJS and firebase dynamic links but is genuinely confused on using the dynamic links part. The firebase documentation says it support swift, Java and Kotlin but my app is a webapp running on a browser. How can I make use of referral rewards in my react app? The link to the documentation: https://firebase.google.com/docs/dynamic-links/use-cases/rewarded-referral


Solution

  • On the web you don't need Firebase Dynamic Links, but you'd instead use regular hyperlinks to build a link to a specific page in your app that you want to apply the reward on and to then parse the information from the link on that page.

    The rest of the approach (such as the Cloud Function awarding the reward) in the documentation you linked should still work the same.

    If you're having trouble getting it to work for your use-case, it's most likely we can help when you post a minimal, complete, verifiable example of where you are stuck.