-
Notifications
You must be signed in to change notification settings - Fork 181
What are the steps to run my own copy of this app? #740
Comments
@nelenkov @willlunniss do you know/remember what needs to be done? |
@casolorz Do you have Play Store Developer account? You need to login to the app with the same Google account you used to register as a developer in order to see any data. Not sure where you added oauth2 credentials, but those are not really needed. |
@nelenkov yeah I have been using Andlytics for a while now but wanted to run my own copy so I can start modifying it. I added the oauth2 client under this page https://console.developers.google.com/apis/credentials I saw something about a Dropbox folder containing keys for signing but I couldn't find any Dropbox folder. |
You might want to provide a stacktrace, so we have a chance to figure out what the cause is. |
This is the stacktrace without modifying the signing key.
When I switch the signing key to my own, the one that I registered the sha1 for, I get this:
|
Not sure why you are getting this, but try using the same account to sign into Chrome on your Android device first. Andlytics is basically emulating the Chrome protocol. You could also try replacing OauthAccountManagerAuthenticator with PasswordAuthenticator (which takes your Google account password as input) to see if you can authenticate. The API console registration should only be needed for accessing the AdSense API, but things on Google's side could have changed. |
I also get invalid_scope when trying to get token |
I did that but it doesn't help. If i remove the certificate I get unregistered_on_api_console. And if I add the certificate I get invalid_token. |
Hm, is it possible that you can only add a limited number of certs? |
I also tried to change the package name in build.gradle (applicationId) and created a new certificate in google api console but that didn't work either. Still getting invalid_scope. |
Just like @magnusgronbek I tried creating my own certificate hash, tried changing package name, etc. Nothing seemed to help. I can probably play with this again in a couple of weeks. |
Not sure why this happens. Could be related to Google Paly services version, although a bit unlikely if Andlytics release build runs on the same device. You could try modifying the code to use the PasswordAuthenticator to see if it makes a difference. Should work with a Google app-specific password, not just our raw password. |
Has anyone managed to get there own copy of the project working? |
Nope. |
I am facing the same issue. INVALID_SCOPE with OauthAccountManagerAuthenticator. Tried all possible steps including
do we need to enable libraries on https://console.developers.google.com/apis/library page for this project? I tried PasswordAuthenticator as well getting below error; after i enter password |
Did the clone worked for anyone ? |
I want to familiarize myself with this app to see if I can add some features I want.
I cloned the repo and when I run it I get:
Unrecoverable authentication exception: UNREGISTERED_ON_API_CONSOLE
So I then created my own oauth2 client credentials using my own keystore and sha1 and then I get this error:
Unrecoverable authentication exception: INVALID_SCOPE
Sow what else do I need to change?
Thanks.
The text was updated successfully, but these errors were encountered: