Comments (5)
by default completeDownloadInfo
uses the downloadUserAgent
as can be seen
Line 472 in 5e5eabd
Are you perhaps passing the wrong agent to the constructor?
from node-google-play.
Yes you are right. However, at the end, it goes to post request and that method reset all headers as i see
from node-google-play.
getCompleteDownloadInfo
does not make the request for you, it simply returns an object suitable for being passed to e.g., request
lib and it does AFAICT put the downloadUserAgent
as default user-agent. perhaps you can show your code.
from node-google-play.
`var playapi = require('gpapi').GooglePlayAPI({
"username": "[email protected]",
"password": "xx",
"androidId": "xx",
"sdkVersion":23,
"apiUserAgent": "Android-Finsky/8.8.12-all (api=3,versionCode=80881200,sdk=23,device=mp1s3gss,hardware=mp1s3gss,product=mp1s3gss_global_com,platformVersionRelease=6.0,model=LG-H542,buildId=MRA58K,isWideScreen=0,supportedAbis=armeabi-v7a;armeabi)",
"downloadUserAgent": "AndroidDownloadManager/6.0 (Linux; U; Android 6.0; LG-H542 Build/MRA58K)"
});
playapi.details("com.mobinavel.KeepTheBall", function (err, res) {
playapi.completeDownloadInfo("com.mobinavel.KeepTheBall", res.details.appDetails.versionCode)
.then(
function (downloadResult, x, y, z, t) {
console.log(downloadResult)
}).catch(function (err, x, y, z) {
console.log(err);
});
});`
this is the code that i used. firstly, i got details of app and downloaded app using version code. When i debug this code, i realized that completeDownloadInfo goes to post request and sets user-agent to apiuseragent.
from node-google-play.
closed due to inactivity. can't confirm if this is actually a bug or not enough information to determine that. please update the issue with more information and re-open if it's still happening
from node-google-play.
Related Issues (20)
- DF-DFERH-01 HOT 1
- Google changes HOT 5
- Login Error HOT 1
- Help!!!!!! LoginError HOT 13
- Login Error CaptchaRequired HOT 22
- Can't download some apks
- Login Error - CaptchaRequired HOT 2
- Error retrieving information from server. DF-DFERH-01 - RequestError - 401
- Download - AssertionError, Can't install. Please try again later HOT 1
- appDetails returns null versions
- LoginError: Error=BadAuthentication HOT 11
- Default shared/anonymous configuration to download app without giving auth details
- Idea: Opt-in metrics collection for crowd-sourced detection of Play Store API breakage
- Can't get details and download a paid app that I paid with my account HOT 1
- [DF-DFERH-01] error when downloading apk HOT 2
- topcharts access?
- Adding custom header support for gp HOT 2
- bulkDetails limit HOT 2
- 404 Item not found
- Android App Bundel (AAB) Apps HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-google-play.