Referrals Module on iOS
Configure the referral module on your iOS app using Firebase. This module allow users or players to refer others with a referral link and gain points.
Configure Gameball With Your Firebase
Before you start, you must configure your Firebase on your Gameball account. Follow the steps in Configure your Firebase account on Gameball for mobile friends referral links article in our Help Center to configure your Firebase account on Gameball.
Integration Details
Below are FireBase dynamic links configuration details.
Import FireBase in AppDelegate File
Copy this code in you AppDelegate
Referral Methods
If you need to use a referral method to sign up a new player 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 just call this method
Don’t call the registerPlayer, this method will register the new playerUniqueId
The playerAttributes is optional, so if you haven't created it yet then call the method like this with only the new playerUniqueId.
Now, referral links will be generated successfully for your players!
Last updated