Landing Page Customization on iOS

To provide more engaging experience to the invited users, you can customize the content of the landing page for each Smart Invite sent from the client side.

Configuration

Possible configuration options:

  • Title: Title of the page.
  • Description: Short description.
  • Image: Landing page image. Can be an image URL or instance of UIImage.
  • Video: Landing page video to be displayed instead of an image. At the moment we support only YouTube video URLs.

Example:

  1. Customize content via Smart Link parameters:

    1
    2
    3
    4
    5
    6
    7
    8
    9
    UIImage *landingPageImage = ...; // get your image here
    
    NSMutableDictionary *linkParams = [NSMutableDictionary new];
    linkParams[GetSocial_Custom_Title] = @"Hey friend!";
    linkParams[GetSocial_Custom_Description] = @"Check out this record!";
    linkParams[GetSocial_Custom_Image] = landingPageImage;
    
    // Alternatively, you can add a YouTube video instead of an image:
    linkParams[GetSocial_Custom_YouTubeVideo] = @"https://www.youtube.com/watch?v=dQw4w9WgXcQ";
    
  2. Send customized invitation via GetSocial Data API:

     1
     2
     3
     4
     5
     6
     7
     8
     9
    10
    11
    GetSocialInviteContent *customInviteContent = ...; // create invite message content
    [GetSocial sendInviteWithChannelId:GetSocial_InviteChannelPluginId_Email
        inviteContent:customInviteContent
        linkParams:linkParams
        success:^{
            NSLog(@"Customized invitation via EMAIL was sent");
        } cancel:^{
            NSLog(@"Customized invitation via EMAIL was cancelled");
        } failure:^(NSError * _Nonnull error) {
            NSLog(@"Customized invitation via EMAIL failed, error: %@", error.description);
        }];
    

    Or via GetSocial UI:

    1
    2
    3
    GetSocialUIInvitesView* invitesView = [GetSocialUI createInvitesView];
    [invitesView setLinkParams:linkParams];
    [invitesView show];
    

Next Steps

Give us your feedback! Was this article helpful?

😀 🙁