dweinstein / node-google-play

Get details and download apps from https://play.google.com by emulating an Android (Nexus 5X) device by default. For a rust version of this library check out https://github.com/dweinstein/rs-google-play
MIT License
269 stars 84 forks source link

Can't get details and download a paid app that I paid with my account #88

Closed MisteFr closed 6 years ago

MisteFr commented 6 years ago

Hey, I can't get details and download a paid app that I paid with my account. Is that something that isn't implemented in this lib ?

When I try to get details I get null for the version code and when I try to download with the correct version code, as I have the following message: RequestError: Can't install. Please try again later..

MisteFr commented 6 years ago

I had this issue because I wasn't providing a good androidId.

In fact, the Google PlayStore API doesn't tell you if your androidId is valid or not. That caused the bad behavior that I had: sometimes I was able to get details of an app and sometimes not.

To get your deviceId you can do as said in the README install the application called deviceId but then when you will open the app you will first see something called androidId and just after GoogleFrameworkService Id, the id needed by the library is the GoogleFrameworkService Id and not the androidId !

Then all should work properly.