Skip to content
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

Android redirection issues #33

Closed
BioBazard opened this issue Nov 16, 2018 · 12 comments
Closed

Android redirection issues #33

BioBazard opened this issue Nov 16, 2018 · 12 comments
Labels
help wanted need reproduction This issue requires a reproduction project.

Comments

@BioBazard
Copy link

BioBazard commented Nov 16, 2018

Hello,
First I want to say again thank you for this plugin.
As said in the title I have a issues with the redirection. After the authentification it don't go back to the app.

I followed the tutorial instruction and I have create 2 OAuth client ID (a web app and iOS).
But when I authenticate it seems use the web app OAuth (because the name that appears is the name of the web app). Is this normal ?

What should I do for after an authentication go back to the app?
Here is a screen of the google drive settings if it can help.

Thanks.

@elringus
Copy link
Owner

Make sure your app id is all lower cased. If it won't help, use adb utility to extract the system log at the moment when redirect occurs to find out, what's causing the issue.

@BioBazard
Copy link
Author

I have try with the bundle id in lower case but I have still the issues ...
This is the catched error
Does that tell you anything?

@elringus
Copy link
Owner

Not really. There should be calls to either UnityPlayer or unitygoogledriveandroid/AuthorizationActivity.

@elringus
Copy link
Owner

I've just tested android build with Unity 2018.3b10 and it worked fine. It could be the issue is with your project config or 3rd party packages. Try re-tracing all the setup steps and building the github example project.

@ItsAntiUp
Copy link

I seem to get some redirection issues too. When signing in it takes me to google.com and not my app (like it used to do before). The only thing I did was downgrade my Unity from 2019 alpha to 2018.2.16f1 (due to weird errors). Thanks for any help in advance.

@pavelb7812
Copy link

Join to this issue. Its working in Editor and iOS but not on Android.

After choosing account for Google Drive its not redirect to my response page with "Please, return to the app" text for some reason. Instead of this it waiting 10-20 seconds and redirect to google.com. File not uploading on Android.

Thank you for any help.

@elringus
Copy link
Owner

elringus commented Nov 21, 2018

Thanks for the reports guys! Unfortunately, I don't have time to fix this right now, so in case anyone have experience with native android stuff, check out the library used for the auth activity: https://github.com/Elringus/UnityGoogleDriveAndroid/blob/master/library/src/main/java/com/elringus/unitygoogledriveandroid/AuthorizationActivity.java Most likely the source of the issue is there.

@elringus
Copy link
Owner

elringus commented Nov 30, 2018

I've tried to reproduce this issue again on a new clean project using another google drive account, but it still worked fine and redirected me back to the app. In case anyone has an idea how to reproduce the issue, please let me know, otherwise I can't really help in any way.

@ItsAntiUp
Copy link

Well, I'm using Unity 2018.2.16f1 and this occurs so you can try to test it on this version. Also, maybe there are some Unity settings (for example Run In Background), which can lead to this happening?

@elringus
Copy link
Owner

elringus commented Dec 1, 2018

I've tested it on both Unity 2018.2 and 2018.3 beta. Run In Background has no effect on mobiles, as far as I know, but will check it anyway.

@elringus
Copy link
Owner

Hey guys, I've tested android again and was able to find some issues possibly related to an outdated appauth lib. Please try to follow the steps as stated here: #34 (comment) and let me know whether it resolved the redirection issue.

@elringus elringus added the need reproduction This issue requires a reproduction project. label Dec 28, 2018
@elringus
Copy link
Owner

Closing this for now. In case anyone will be able to make a stable repro case, feel free to re-open this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted need reproduction This issue requires a reproduction project.
Projects
None yet
Development

No branches or pull requests

4 participants