I'm currently showing a leaderboard in my game using Google Play Games. Now I want to add an "Invite" button in order to engage more users to the game, the idea is when you press the button, show a popup with all the friends in your circles, select one or more and then send the invites.
I've looked through the API but can't find anything. Weird thing is that this feature appears in the landing page of Google Play Services (https://developers.google.com/games/services/):
Help players ask friends to take specific action in a game, like "challenge", "attack", or "accept gift".
So maybe I'm missing something. Is this possible to do? How?
The invitations that you mention are for multiplayer games only.
Whats the point of inviting to another person to a leaderboard?
Maybe what you want instead is to post the fact that you have unlocked an achievement, let's say on google+, for that I will sugest the following aproach:
https://developers.google.com/+/mobile/android/share/
Also, hold for the 4.1, I believe P2P wont be the only way to do multiplayer games and other stuff may be added too.
Related
I have create a Custom codes which allow user subscriptions with some free trials. From the document, in order to redeem the code, we need to initiate the purchase bottom sheet dialog, press arrow, redeem the code.
For me, it look not friendly to user (in iOS, Custom code can redeem by URL or by call API within the app)
Is there anyway other way to redeem Custom Code from Google Play?
Yes, there is a way to redeem the code from Google Play Store.
Open Play Store-> Click on profile picture on top right corner->Select Payments and subscriptions->Click on Redeem code. Now, you will be able to see the 3rd screen from your question.
as far as I know this is the only way.
The answer from priya-sindkar is only applicable to "One-time codes" (i.e. codes that can be used once and by a single user to install or get your 1-time IAP for free).
For "Custom Codes" (i.e. the code that can be used by many users to get an extended free trial) it seems that the only way is the one described in the question, and a further restriction is that the workflow must be done from within the app itself, just before paying for the subscription as described on this answer from Google support.
I created an Android Game using Appwarp and now I want to connect players using facebook. I read the docs for a few hours and now I am uncertain where to go next. I understand Game Requests in facebook requires "presence on Facebook Canvas". How do you do that? My app is a game and is already released on the app store with random matchmaking enabled, why doesn't facebook recognise this app as a game?
I tried GameRequestDialog, but returns error only available to games.
For games without presence on facebook canvas I seem to understand you have to use ShareDialog (https://developers.facebook.com/docs/sharing/android#message-dialog) or AppInviteDialog (https://developers.facebook.com/docs/archive/docs/app-invites/android/)?
bottom line, What I really want is for a player to see a list of his/her friends click on it and be matched with that person in game with appwarp, how can I achieve this? Do I have to do something to get presence on the facebook canvas or is there another way?
EDIT :
after more digging I realized Google's firebase push notifications devices to devices might be what i really want, unless someone thinks that is not feasible?
I have made a game, and when playing it the achievements show as a pop up in game when awarded. And it appears to be working correctly, they're iterating when they're meant to, they're being awarded for completing set tasks as they're meant to. But on the screen in "Play Games", it doesn't display them, and when you click on an achievement in the pop up, it doesn't let you view them.
Like so:
I want it to appear like:
What am I missing? I've looked all over the developer console and can't find anything to make this change.
From the Google Play Games Service documentation, Make sure that you follow the instruction here that to show a player's achievements, call getAchievementsIntent() to get an Intent to create the default achievements UI. Your game can then bring up the UI by calling startActivityForResult
startActivityForResult(Games.Achievements.getAchievementsIntent(mGoogleApiClient),
REQUEST_ACHIEVEMENTS);
In the following snippet, REQUEST_ACHIEVEMENTS is an arbitrary integer used as the request code.
Also from this SO question, make sure you publish the game in the developer console, to see the achievements in the activity
If this options adidn't work on you, then maybe AlexeyGorovoy is correct.
This might happen because you haven't publish your game in Game Services.
First publish game in google service which is situated in Google Play Developer Console.
Then your achievements tab will be created under your game in Play Games.
I was thinking to integrate the Google AdMobs SDK in my free app. Now, I have read the terms of use regarding publishing ads:
If User is a publisher, User shall not, and shall not authorize or encourage any third party to generate fraudulent impressions of or fraudulent clicks on any advertisement.
But, I'd still like to ask if the following is allowed:
I have a free app with a locked feature (a disabled ListView item). And below it I plan to say the following "Watch 5 ads to unlock this feature". Now, I'm NOT going to be showing any dialog boxes encouraging the user to watch an ad or any other way. And it's completely fine if the user doesn't want to watch an ad; he just doesn't get to unlock that feature. I think this way is more of a passive nudge than actual encouragement. And I plan to stop showing ads as well after the user has watched 5 ads. I don't think that it's fraudulent either.
Considering games like Subway Surfer and Doodle Jump use this method if I want to unlock in-game prizes or start a game from where I left off if I lose, I don't think this should be a problem.
However, I would like to know all your thoughts on this. Is it ok to do this?
Admob doesn't allows this. but you can check with other third party ad providers like chitika https://chitika.com/mobile if they allow it.
If User is a publisher, User shall not, and shall not authorize or
encourage any third party to generate fraudulent impressions of or
fraudulent clicks on any advertisement.
I know how to invoke Google Play from my application from the code. However, it starts the main page on Google Play from my application. From that the user may want to go to add rating, but is there a more direct way?
Like, can I have in my app a button 'Hated it' which will result in 1 star being posted on Google Play for my app and a button 'Loved it' which will result in 5 stars?
What I did in my App was to show the user a dialog after the app was started a few times, say 15 times or something like that (If your users use the app a lot, it would be more probably that they rate it good, because they are using the app, so do not ask them in the first days of use). What the dialog shows is a text where you ask the user to rate the app, ignore, etc. If they press "rate" and they are linked to the google play they may rate the app, because they already decided to rate it pressing the button from your dialog. I do not know there is a "direct" method to do this like you are thinking. Try my method instead.
See my example Code Example
Android applications have to be rated by the user inside the Google Play Store. The best you can do is to redirect the user to your application's Google Play page.
Therefore, it's not possible for you to implement a simple way for the user to grant you a 1 to 5 star rating directly inside your application.