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:
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).
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?
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"