5

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?

MrBrightside
  • 2,669
  • 3
  • 17
  • 24

2 Answers2

1

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

Veener
  • 4,771
  • 2
  • 29
  • 37
  • 1
    Oh! ok, thanks. So, I guess is not showing it because I haven't uploaded yet to the PlayStore. – MrBrightside May 31 '15 at 12:44
  • So for a published app, the message will show inside the email content and above the Play Store widget? And the title where it shows "Food2you App" is also added automatically for published apps? – Bogdan Zurac Jun 05 '15 at 12:52
  • I also wonder how one can customise the wording so that it doesn't show "Install this application" but rather "Hi Debbie, check out the Food2you App." – Simon Aug 23 '15 at 10:54
  • In the manual you have a possibility to change the wording while building the intent. here is the link: https://developers.google.com/app-invites/android/guides/app hope it helps But a user can change that when composing an invite. – Dusko Oct 08 '15 at 07:54
0
            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

user237462
  • 387
  • 1
  • 5
  • 24