Welcome Message
REFERRAL PROGRAM
Referral programs are a great way to empower your brand by further empowering your loyal customers. The welcome message is a way to prompt the customers to refer the brand to their friends and acquaintances. The message contains a referral link or a code that the customers can share further.
Below are methods to show the welcome message and its important components :
Show Welcome Message
You can show the welcome message to the customer if he comes through the referral of his friend.
InviteReferrals.welcomeMessage()
[InviteReferrals welcomeMessage];
Get Referrer Code
You can get the value of referrer code by using the following method.
InviteReferrals.getReferrerCode { (irReferrerCode: String?) in
print("irReferrerCode = \(irReferrerCode!)")
}
[InviteReferrals getReferrerCode:^(NSString * irReferrerCode) {
NSLog(@"irReferrerCode= %@", irReferrerCode);
}];
Get Referring Params
You can get the value of referring parameters by using the following method.
InviteReferrals.getReferringParams { (irReferringParams : [AnyHashable : Any]?) in
print("irReferringParams = \(irReferringParams!)")
}
[InviteReferrals getReferringParams:^(NSDictionary * irReferringParams) {
NSLog(@"irReferringParams = %@", irReferringParams);
}];
Response Sample
{
"ir_code":"MGB9Q7HR",
"utm_campaign":"Default_Campaign",
"Utm_medium":"others",
"Ir_ref":"46287-27894-50763857-others-mobile-1636609983-419-30-0",
"Utm_source":"invitereferrals",
"Utm_content":"50763857"
}
Updated 5 months ago