Welcome Message

REFERRAL PROGRAM

Referral programs are a great marketing strategy to let your existing customers claim their rewards and incentives whenever they refer your brand to their closed ones and acquaintances. Welcome Message is the first step to prompt your existing customers to let them refer the brand to their friends and acquaintances. The message includes a referral link or a code that the customers can further share.

Read the below steps to launch the different components of Referral program :

Show Welcome Message

Show​ ​welcome​ ​message​ ​to​ ​customer​ ​if​ ​he​ ​comes​ ​through​ ​referral​ ​of​ ​his​ ​friend.

InviteReferralsApi.getInstance(context).showWelcomeMessage();

Get Referrer Code

A referrer code is a unique code that every referrer shares with their friends during a referral campaign. Every referral code is unique for every individual who has enrolled in the referral program of a company.

This function will provide referrer code in callback, if it's available in the SDK.

InviteReferralsApi.getInstance(context).getReferrerCode(new IRTrackReferrerCode() {
   @Override
   public void getReferrerCode(String refCode) {
       Log.e(TAG, "Refer Code = " + refCode);
   }
});

Get Referring Params

This function is a return type function, which provides json data in return. It has all utm data, if it is captured from the application.

InviteReferralsApi.getInstance(context).getReferringParams();

Response

{
   "ir_code":"MGB9Q7HR",
   "utm_campaign":"Default_Campaign",
   "utm_medium":"others",
   "ir_ref":"xxxxxxx-xxx-xxxx-xxxx-xxx-xxxx-xxx-xxxx-xxxx-xxx",
   "utm_source":"invitereferrals",
   "utm_content":"50763857"
}

Show Pop-Up

This method is used when you want to show, how it works or terms & conditions content in your app’s screen. Pop-up will be shown in alert dialog box in your screen.

InviteReferralsApi.getInstance(context).showPopup((String) popupName, (int) campaignID);

Parameters :

Parameter

Description

Value

PopUp (string)

Call to action button on which user will click and convert

Campaign id (integer)

Unique identification number of the campaign