I would like to create a small module for referrals using Firebase, ReactNative/ReactJS and MySQL
Step 1. Need to Create an invitation link, this will be a unique link
example : John will be referring Liz and Sam and Kate
So, John will send a link from a web site to Liz and Sam. There will be two buttons on the page - Accept and Decline
Liz clicks on the Accept button on the website - When doing this, we need to capture,
John sent this and Accepted by Liz.
Sam clicks the decline button on the website - When doing this, we need to capture, John sent this and declined by Sam
Also, Kate can refer a person already referred, we need another row added in the table example - Kate refers Sam and Liz
When Kate refers, the app is already installed, so it should opens the app directly.
Step 2. Send this as Notification
Step 3. Liz is on her mobile phone - she may be on android or an IoS device. She clicks on the link - Liz should't be typing any info - like referred by etc etc. It should directly link both Liz and John and place in the DB.
Scenario 1: She already has the app installed on her deceive
Scenario 2. She doesn't have the app, the link will take her to the appropriate app store and downloads the app, installs the app from the appstore.
The data should get stored in the DB as shown below
ID Referred By Referee Flag(Accepted or declined)
1 John Liz Yes
2 John Sam No
3. John Kate BLANK(means pending)
4. Kate Liz Yes
5. Kate Sam no
Is this something that you can do? Thanks