App Invites for Android: customize the content of received messages

I am trying to test the new Google Play Services applications Invites for Android application , which is currently in beta. Maybe I missed something, but after I tried the sample application, read the documentation and tested it in my application, I can’t understand how to configure the content message that the invited person will receive.

I just want to show some content with a link to the application in the play store, as the image in the documentation shows, but all I get is simple text that says: “Install this application”.

enter image description hereenter image description here

Can anyone who checked this new api help me?

+5
source share
2 answers

If you add it to your application, it will automatically show the contents of the play store.

+1
source
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); 

Pretty sure it's something like this

0
source

All Articles