Documentation Index
Fetch the complete documentation index at: https://docs.gameball.co/llms.txt
Use this file to discover all available pages before exploring further.
Introduction
One of the most effective ways to get new users is through user referrals. You can use Gameball referrals capabilities to encourage your users to invite their friends by offering rewards for successful referrals to both the referrer and the recipient. Gameball referrals uses Firebase Dynamic Links in the background to generate customers’ referral links and track referrals. Dynamic Links are smart URLs (deep links) that survive the app install process, so new referred users via referral links will be easily tracked when they open the app for the first time. Gameball and its SDK provides hassle free integration to track referrals where you will only need to:- Provide your firebase info through Gameball dashboard to generate referral links to your customers.
- Invoke referral method with every new account creation through your app.
Your customers will be able to get and share their referral link from Gameball Customer Widget.
Sending Referral
Referral information can be submitted to Gameball using two methods. The first option involves relying on automatic detection, which is triggered when theregister player method is called. Alternatively, you can explicitly use the friend referral. Both approaches yield the desired outcome, and the choice between them depends on your specific scenarios.
Automatic Detection
After setting up the necessary Firebase dependencies and adding your Firebase details to Gameball’s dashboard, when register player SDK method is called, the system will automatically detect if there is a referral code. If a referral code is found, it will be included in the registration request. This allows the newly registered customer to be linked with the referral code.Using Friend Referral Method
friendReferral should be called after your customer registration, hence a new customer is created. It basically detects if the customer has registered using a referral code or not.
If you need to use a referral method to sign up a new customer using a referral link, call the function below to use the referral module. Best use case is in the success of the registration API of your app.
Firebase Deeplinks Integration
To integrate and track referrals you need to perform two main steps:- Configure your Firebase dynamic links settings from your firebase console
- Configure Firebase on your App and Gameball account dashboard
- Invoke SDK Referral method within your App user registration flow