Referral Customization for iOS
After you build the Referral Mobile SDK for iOS, you can customize the referral UI components, and modify the referral-related configuration in the MyNTORewards sample app.
The referral UI components are available in LoyaltyMobileSDK-iOS/SampleApps/MyNTORewards/MyNTORewards/Referral/Views.
For example, to include Gmail as one of the options to share a referral code:
- Add the new Gmail icon in the
LoyaltyMobileSDK-iOS/SampleApps/MyNTORewards/MyNTORewards/Assets.xcassetsfolder. - Open the
LoyaltyMobileSDK-iOS/SampleApps/MyNTORewards/MyNTORewards/Referral/Views/ReferAFriendView.swiftfile in Xcode, and add the new icon ID to the list of icon IDs.
You can modify the referral program details in the LoyaltyMobileSDK-iOS/SampleApps/SampleApps/MyNTORewards/MyNTORewards/AppSettings.swift file.
Here are all the properties you can modify.
promotionCode: The default promotion code.referralDateFormatandreferralDateFormatWithoutTime: The referral activity date format with and without time.referralProgramName: The default referral program name.referralTermsLink: An external Terms and Conditions link.
For a complete walkthrough of the referral feature in the MyNTORewards app, see Walkthrough of the Sample App.
An advocate can refer a friend only once. When an advocate makes repeated attempts to refer a friend, you can show a custom message based on your company’s branding.