Closed its-mash closed 3 years ago
Device does not support.
Try to set gpAPI.setUserAgent()
, gpAPI.setClientID()
as a supported device.
Actually I’m not sure, I don’t have an Android TV...
I found a way, you need to get the GSF ID of your Android TV.
You can download it on other devices https://play.google.com/store/apps/details?id=com.evozi.deviceid, then backup as APK, transfer it to your Android TV and install it.
Example code:
const GooglePlayAPI = require('@gonetone/google-play-api')
const gpAPI = new GooglePlayAPI("Your_Google_Account@gmail.com", "The GSF ID of your Android TV")
gpAPI.getGoogleToken('Your OAuth2 Token', 'save/token.txt').then(async (token) => {
await gpAPI.googleAuth(token)
const details = await gpAPI.appDetails('com.spotify.tv.android')
console.log(`Version Code: ${details.details.appDetails.versionCode}`)
console.log(`Version String: ${details.details.appDetails.versionString}`)
})
Result:
Crashing at Purchase function:
Note: I didn't call
gpAPI.setSdkVersion()
&gpAPI.setUserAgent()