Firebase "refer and earn" or invites using Reward Referals?

7.5k Views Asked by At

I want to implement "refer and earn" concept using https://firebase.google.com/docs/dynamic-links/use-cases/rewarded-referral in my application.

When I'm creating dynamic links with user id

FirebaseUser user = mAuth.getInstance().getCurrentUser(); 

get current user always returns null.

My questions are:

  1. If I want to implement "refer and earn" using dynamic links, I have to make user sign up or sign in with Firebase login system (Firebase email login, fb login...e.t.c).

  2. If I have my own database for signup and I'm storing credentials and validating user from server. So I'm not using the firebase login system. Is it still possible to implement "refer and earn" using firebase?

  3. How to track the people who installed or not and how should I give him rewards.

Please give me some example or sample links if any one implemented "refer and earn"

1

There are 1 best solutions below

0
On

Please find below are my answers to your question.

  1. Yes. Absolutely! You need to implement Firebase database to implement refer and earn using firebase.
  2. No. You cannot reward users using Fireabase implementations if you are using your own server. You may need to look into other service providers like www.invitereferrals.com, https://github.com/appvirality etc.
  3. Please go through the complete details in below link. They have explained end to end implementaion from referring to crediting users.

https://firebase.google.com/docs/dynamic-links/use-cases/rewarded-referral

Hope this helps.