Landing Page Customization on Android

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 android.graphics.Bitmap.
  • 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
    Bitmap landingPageImage = ...; // get your image here
    
    LinkParams linkParams = new LinkParams();
    linkParams.put(LinkParams.KEY_CUSTOM_TITLE, "Hey friend!");
    linkParams.put(LinkParams.KEY_CUSTOM_DESCRIPTION, "Check out this record!");
    linkParams.put(LinkParams.KEY_CUSTOM_IMAGE, landingPageImage);
    
    // Alternatively, you can add a YouTube video instead of an image:
    linkParams.put(LinkParams.KEY_YOUTUBE_VIDEO, "https://www.youtube.com/watch?v=dQw4w9WgXcQ");
    
  2. Send customized invitation via GetSocial Data API:

    1
    2
    3
    InviteCallback inviteCallback = ...; // create callback
    InviteContent inviteContent = ...; // create invite message content
    GetSocial.sendInvite(InviteChannelIds.EMAIL, inviteContent, linkParams, inviteCallback);
    

    Or via GetSocial UI:

    1
    2
    3
    GetSocialUi.createInvitesView()
        .setLinkParams(linkParams)
        .show();
    

Next Steps

Give us your feedback! Was this article helpful?

😀 🙁