MrBrightside
MrBrightside

Reputation: 2669

App Invites for Android: How to set received message content

I'm trying to test the new Google Play Services api "App Invites for Android" that is currently in Beta. Maybe I'm missing something but after tried the sample app, reading the documentation, and tested it in my app I cannot figure out how to set the content message that will receive the invited person.

I just want to show some content with the app link in the play store like shows the picture in documentation but all that I get is a simple text that says "Install this application".

enter image description here enter image description here

Can someone that tested this new api help me?

Upvotes: 5

Views: 1902

Answers (2)

user237462
user237462

Reputation: 421

            String inviteTitle = "This app is terrific. try and get $5 off ";
            String inviteMessage = "install the application";


            Intent intent = new AppInviteInvitation.IntentBuilder(inviteTitle)
                    .setMessage(inviteMessage)
                    .build();
            startActivityForResult(intent, REQUEST_INVITE);

Fairly certain its something like this

Upvotes: 0

Veener
Veener

Reputation: 5191

If you add it to your own app it shows the play store content automatically.

Upvotes: 1

Related Questions