Implement Mobile Referrals
Gameball referrals for React Native apps rely on deep links generated by a provider such as Branch or Adjust. These links help identify the referring customer when a new user installs and opens the app.Setup
1
Choose a Deep Link Provider
Use Branch or Adjust to generate referral links and handle deep/deferred linking in your React Native app.
2
Install the Provider SDK
Install Branch or Adjust using their official React Native packages:Follow their official documentation for linking and permissions.
3
Configure Deep Linking
Set up universal links or custom URL schemes depending on your chosen provider.
Refer to Branch or Adjust setup guides for iOS and Android.
Refer to Branch or Adjust setup guides for iOS and Android.
4
Connect Provider in Gameball Dashboard
Go to your Gameball dashboard:
Settings → Admin Settings → Integration → Mobile Configuration → Dynamic Link ProviderSelect and configure Branch or Adjust.
Gameball appends a referral code (e.g.,
?referrerCode=SARAH123) to each referral link automatically.Handle Deep Links
After the app is opened via a referral link, your deep linking provider’s SDK will pass the parameters. You need to:- Extract the referrerCode
- Store it (e.g., AsyncStorage)
- Pass it when calling initializeCustomer
Example with Branch
Example with Adjust
Register Customer with Referral
When registering a new customer, include the stored referral code if it exists:Display Referral Link (via Widget)
Customers can view and share their referral link using the built-in Gameball widget. This includes both the code and sharable link. If you’re using a custom UI, contact Gameball support to retrieve referral details via API.Set up your referral rewards and eligibility criteria inside the Gameball dashboard.
Referral Flow Summary
1
Referrer Gets a Link
The existing customer retrieves their referral link via the widget or API.
2
Referrer Shares Link
They share the link through messages, social platforms, or email.
3
New User Opens Link
The deep link provider opens the app and passes the referral parameters.
4
App Captures Referrer Code
Your app extracts and stores the
referrerCode from the link.5
New User Registers
The registration request includes the stored referral code.
6
Rewards Are Granted
Gameball evaluates your referral conditions and rewards the referrer and the referred user.
Next Steps
- Go-Live Checklist
- Migration Notes