Skip to main content
Version: 1.51.x

Referral System

Configure

Please, add the next parameters to your Info.plist.

You should ask your manager for the values of these parameters

<key>P101XPAppLink</key>
<string>https://platform101xp.page.link/jdF1</string>
<key>P101XPLinkDomain</key>
<string>https://platform101xp.page.link</string>
<key>P101XPAndroidPackage</key>
<string>com.platform101xp.android</string>

P101XPAppLink – app’s homepage

P101XPLinkDomain - dynamic link domain

P101XPAndroidPackage - application ID in the Google Play

Next, switch on Associated Domains in Xcode Capabilities tab and add Your Domain:

Next, open the info tab in Xcode and add item for URL Types as shown below with your URL Schemes:

101XP SDK allows sending invite links to other people, for edit a message in invitation you need to add to info.plist the following line:

For Russian language:

<key>P101XPRu_text_invite</key>
<string>Text invite</string>

For English language:

<key>P101XPEn_text_invite</key>
<string>Text invite</string>

If a device language is different from Russian or English uses English.

Usage

Referral invites

To send a referral invitation to another user, you need to call sendInviteLink(event) method:

[P101XP sendInviteLink:@"event_referrer_invite"];

Where the event is the value of the event you want to receive and process further with the P101XPDelegate methods.

Rewarding users

To reward users, you need to implement two P101XPDelegate methods:

- (void)p101xpOnRewardedInvite:(NSString *)referrer;

That will be called after the user fulfills the conditions for the reward

event - value from sendInviteLink method

- (void)p101xpOnRewardedInviteLinkRecipient:(int64_t)userId event:(NSString *)event;

That will be called after getting an invite by recipient. This method should return true if the user has fulfilled the conditions for the reward (for example, reached level 10).

userId - the identifier of the user who invited the current user

event - value from sendInviteLink method

Common scheme