-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In-app purchases with multiple accounts #2
Comments
We often get complaints from our users that we've "removed" their purchases. This is obviously very frustrating for both our users and us. For those users that actually email us about the issue (rather than just curse at us in a Google Play review) and follow our instructions, we're usually able to solve the issue (at least temporarily). I've done some testing and figured out a way to reliably reproduce the Google Play missing purchases bug: Set up: Sign into a single Google account on a device. Purchase an in-app product or subscription (I tested specifically with subscription). Steps to reproduce:
Fix A (only works if the account used to make the purchase is the "primary" account on the device):
Fix B:
A "realistic" example of the above scenario is:
I'm sure there are other ways to reproduce this issue (and other "fixes"). I hope this helps resolve this issue. |
I have to say that I am disappointed with the fact that this issue has been mentioned at least three years ago(see this link and the link I attached above). And it** could be stably reproduced** and **every app developers _are experiencing with issue. And this is related to _real money, this is not an issue that users do not care that much. But still there is no fix. I have logged several android related issues in https://code.google.com/p/android/issues/list, and it usually gets fixed in the next release. I do not know what happened to the In App purchase team. Hope there will be someone who will eventually gets this fixed. |
I am not clear why google has to support this scenario. As far as google play is concerned, app purchases are specific to an account. If an app is purchased using one account, it won't be possible to utilize that purchase through another account. Google play has come up with Family Library. This could be the solution for your users with multiple accounts. However if this has to work, I think, developer shall approve the in app purchase to be allowed for family library or not. |
@rpattabi You may be misunderstanding this issue. It's not about accounting one purchase to more than one account. But rather the correct allocation of purchases to the corresponding account, when there are multiple Google accounts set up on the device. |
The original issue includes this: "Open Google Play and switch to the new On Mon, Jul 18, 2016, 8:40 AM Brian Hoffmann notifications@github.com
|
When a user has multiple Google accounts on their device, it should not matter which account is currently selected in Google Play. In-app purchases made with any of the signed in accounts should be reported to an app. Unfortunately, this is not the case (as I described above, and provided steps to reproduce the issue). |
I think I'm in the camp of "works as it should." As @rpattabi mentioned, On Mon, Jul 18, 2016 at 11:57 AM Andrew Hughes notifications@github.com
|
@ashughes, I'm confused. Is there a missing step 4.5 in your steps to reproduce, where the user opens Google Play and switches back to the original Google Account? If not, why should the purchase made under the original account be visible to the app when running while logged into Google Play as the 2nd account? |
Sorry, but I really don't understand the "working as it should". So if I'm logged into 2 Google accounts on my device, say my personal and work. I have apps installed, some of which I've made in-app purchases with through my personal Google account, and others I've made through my work Google account. Are you saying you think the correct behavior is:
First of all, the above is not how it currently works, and it's not even what we're talking about, however this is what it sounds like you're saying is "working as intended", so I wanted to clarify. If this is what you think the correct behavior is, I absolutely disagree. This would cause so much frustration with both users and developers. Users wouldn't know to switch which account is currently selected in Google Play in order to make sure their purchases are enabled in a specific app. And even if they did, it would be annoying to remember to do this constantly if you have, for example, personal and work accounts on you device. As developers, we'd be blamed constantly for losing users purchases since they're suddenly gone when they happen to switch which account is selected in Google Play. I also wanted to note that this issue has nothing to do with the Family Library (regardless of the fact that, as far as I am aware, in-app purchases are not part of the Family Library). Just to reiterate, the issue that's being reported here is that if a user is signed into more than one Google account on their device, depending on certain scenarios, their purchases can stop being reported to an app when they should be. This does not always occur. It is possible to be signed into multiple Google accounts on a device, and have in-app purchases made with those different Google accounts, and have all the purchases be reported to apps. This is the correct behavior. However, when certain scenarios occur, such as the steps in my original comment (although that's not the only way), purchases from one or more accounts stop being reported to apps. This is perceived by most users as the developer "deleting" their purchases. Simply switching which account is selected in Google Play does not fix the issue. |
The way you explained it there makes me understand where you are coming However, now that I understand better, I do agree that in the case of Sorry for the confusion. That said, I have no power to do anything, your On Mon, Jul 18, 2016, 12:54 PM Andrew Hughes notifications@github.com
|
Glad I was able to explain it well enough. :) I've been trying to convince a Googler. I spoke with 2 people at I/O this year, both of whom said they'd look into the issue, but I haven't heard back from either. :'( |
This issue has to be one of the longest running issues I've encounter and responsible for 90% of all complaints from my users... |
And I am so disappointed that In-App team has no plan to fix it. |
Has anyone made any progress with this? Seems more common to have multiple accounts and I'm getting a lot of support emails asking why they've lost their in-app purchases. |
Had a very promising conversation with some Googlers on Twitter: https://twitter.com/chrisbanes/status/771708081294237696. But I haven't heard whether or not they're looking into the issue. :-/ |
Thanks for the update @ashughes. Every update I push I'm getting constant negative reviews as folk think I'm trying to charge them again. This is getting beyond annoying now... |
Same here... :'( |
this issue is 4 years old now ! see the date... |
This is so frustrating: Feel free to copy/paste my workaround (replace app name): |
Any update on this? My users are still losing their purchases each update I push... |
I've just run into this problem, it's not funny. These three images also show how confusing it is to ME as a developer! Heck knows how a unknowing user will work this out! https://goo.gl/photos/kzwP36B3DVFPXU3UA If you aren't going to fix it, you need to make it REALLY clear which InAppPurchase is associated to which account. |
This issue is getting ridiculous. It has been existed for five years. And there is no response from the In-App pay team. |
Is there no way to tell the billing code to use a certain account? This issue is such a pain. Every time I release an update I get several bad reviews and emails from people who are justifiably upset. The issue is really bad when doing a staged rollout because if a user has multiple accounts, the one that gets "lucky" and gets the update isn't necessarily the one that they made the in-app purchase with. |
Can anyone from Google update us on this issue? |
We're hitting the same problem. It has been very frustrating for us as well as our users. Our experience with In-App purchases on Android has been horrendous compared to iOS. |
Many thanks to @dakdroid I have just tested your workaround with a customer and it works! |
Thanks for all comments. Best regards |
@netomarin this has been asked before on stackoverflow.com on multiple posts, here are two I quickly found on my phone. https://stackoverflow.com/q/29885959 |
@AhmMhd Not every app has user accounts and a server.
|
This issue hasn't been closed, has it? |
Man this issue is frustrating, I use a personal account for all my apps and ever since I added my schools google account apps have started reporting that their subscriptions are no longer valid.... Another issue related to this is the fact that in app purchases seem to default to a specific account with no way to switch, even when going to the play store and changing which account photo is selected. |
I am frustrated with this issue too. I did buy a pro version (no subscription, one time buy) with an old account. Now using my new account I cannot see the pro features unless I actually select my old account as my default account in google play. But this in exchange means that other subscriptions won't work anymore. I wouldn't mind it so much if there would be a possibility to move purchases to another account, but there isn't. So please finally fix this issue that seems to be there for so long! |
Yeah I also just ran into problem. To resolve B ashughes mentioned in second post I had to Uninstall, then switch to main account, then switch back to 2nd account on Google play, then reinstall |
This is so frustrating... I am almost ashamed to develop on Android, no real support from the platform, most of the APIs for devs are just a nightmare... I lost countless hours on the Camera2 API a huuuuge failure! |
Yes we feel the same, awful apis. You think one api is bad, only to find another that is just as worse. This billing github repo has been abandoned also. Poor attitude from Google. |
Here's a link to the latest version of this bug on the official Google issue tracker: https://issuetracker.google.com/issues/139597485 Please star that issue if it affects you. |
@netomarin One point of my doubt is why Google made such a setting: The purchases are always related to the account that was selected on Play Store app when users installed the app, and not related to the Google account currently active in Play Store when the purchase occurred. I suggest the latter is obviously more logical, so when users complain about subscription lost, we only need to tell the user, please make sure that you have selected the correct account in the Play store app, instead of telling the user to uninstall our app, and confirm you have switched the Google account to which you purchased our app, and then reinstall our app. I don't think you can not get knowledge of which account is active currently either. If you guys don't expose the relevant interface, the developer will not be able to get the user's currently logged-in Google account, but as a Google in-app purchase team, you can definitely know which account the user logged in. It is logical to use the currently logged-in account to make a purchase. Now the situation seems to be that you confuse multiple accounts with multiple users |
@ashughes For some reason I can't reach the link of the issue-tracker you've shown. |
I don't know if it the same issue but the main one discussing the update issues got marked as private. I'm guessing there has been no progress but they got tired of developers complaining. |
@AndroidDeveloperLB @casolorz I can't reach the link either. I actually discovered this back in March and reported it as a new issue, which I also can no longer see. I did take a screenshot of it though: Unfortunately, it appears that now I can't see any issues in the Google Play Billing Library component, even those I created. |
I guess there were too many complaints about the multiple account bug and they made it all private. |
Hi, I'm sorry to hear that has happened to you maybe you should try calling customer care they might be able to assist you with your queeries. ,🙂 |
I can't believe this has been a problem since 2016 and Google is shutting us out and not giving feedback or updates. It's highly frustrating having to explain this problem to users on a regular basis. I just got a user email me asking why he could not see his subscriptions and whether it's the same Google multi-account problem. I have suggested just including a "CHECK_ALL_ACCOUNTS" flag when making Google Play Services requests. This problem is 7 years old. As developers, what can we do? An open letter on Hacker News? Protest? Start submitting issue reports to Google everyday en-mass? |
@duanemalcolm They have talked about it and gathered suggestions on the issue tracker, and then at some point the post on the issue tracker was closed and nobody can reach it... |
It is actually much older than 2016, just this issue is from then and it isn't the first one. The issue already existed when I started using in app purchases on 2014. I suspect it has been there since in app purchases were released. |
@AndroidDeveloperLB Yes, I know about the post on issue tracker and it was great when the Google dev was giving feedback. It felt like progress was being made. Now the post is gone private and we can't see anything. We don't know if progress is being made or will this be an issue for another 5 years. It is extremely frustrating. As @casolorz rightly pointed, this issue is probably 10+ years old. This is just silly. What I'm asking here is whether there is something we can do to get Google to help because it's my biggest user support issue and I can't do anything about it. I am frustrated. |
I've known this problem for 9 years and to this day they haven't solved it. 🙄 |
We should start celebrating a birthday party for this issue 🥳 |
seems this issue will stay forever! |
The bug not fixed 2024. Fuck Google! |
Can't we have some flags of how to handle it? Once the dialog option is chosen, we should be able to clear-data of the app and start using the selected account from this point. |
Lol frothing over play store?
Get Outlook for Android<https://aka.ms/AAb9ysg>
…________________________________
From: AndroidDeveloperLB ***@***.***>
Sent: Wednesday, May 8, 2024 4:42:19 PM
To: android/play-billing-samples ***@***.***>
Cc: Kaiyusa ***@***.***>; Comment ***@***.***>
Subject: Re: [android/play-billing-samples] In-app purchases with multiple accounts (#2)
Can't we have some flags of how to handle it?
For example:
Automatic - choose the account that has purchases if possible. If both have, show dialog to user (which shows information of purchases for each, including when was the last time each was used).
Use latest - uses the latest account that was used with purchases.
Always ask - show dialog to user which account to use.
Default (current behavior) - uses main account.
Manual - let us query things ourselves and then show our own dialog (or of Google if that's a security risk).
Once the dialog option is chosen, we should be able to clear-data of the app and start using the selected account from this point.
Sadly though, even though the API of clear-data exists, it doesn't have the ability to start the app, but this can be "fixed" by telling Play Services to start it for us afterwards.
—
Reply to this email directly, view it on GitHub<#2 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/A5BJGAZVGNOTQLHLR57MTVLZBHCMXAVCNFSM4BYDEHR2U5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TEMBZHE4DKMRSGY4A>.
You are receiving this because you commented.Message ID: ***@***.***>
|
Hey there, there will be issue when users have multiple accounts added in device. This is an issue that everyone who has ever integrated android play billing is experiencing. Please refer to this link https://plus.google.com/+ChrisLacy/posts/BAahtLEw9gy or this link for more details.
http://stackoverflow.com/questions/28811490/in-app-purchases-with-multiple-accounts#
The text was updated successfully, but these errors were encountered: