Comments (6)
@nicolasboattini This is probably due to auth token not being cached or used. Try building the sample project and check if it reproduces for you to figure if that's related with your custom app or with the plugin. Feel free to open another issue to discuss this.
from unity-google-drive.
Searching a bit further i found this: https://github.com/elringus/unity-google-drive/blob/master/Assets/UnityGoogleDrive/Runtime/Authorization/LoopbackAccessTokenProvider.cs
where there is a method called ExecuteFullAuth() that implements this:
// Creates a redirect URI using an available port on the loopback address.
redirectUri = $"{settings.LoopbackUri}:{GetRandomUnusedPort()}";
I assume that here is where my problem resides cause its clearly using a random port. It really has to be like that? Isn't there a way to have a static port?
from unity-google-drive.
It has to be unused, but not necessarily random. The thing is, we do not know which port is unused on user machine. I guess there could be an option in config to use specific port instead of finding a random unused one.
from unity-google-drive.
Thanks for quick reply. I guess that having a field to use specific port set by the user could be a gamechanger enhancement nowadays. I'd like to do it myself but i'm afraid my knowledgements aren't that high, but i'll give it a try, if i find something i'll make a PR.
from unity-google-drive.
Done! Wasn't that hard i think.
Requesting for aproval here: #136
from unity-google-drive.
Nvm, it have a static port but the prompting for permissions stills appearing for every photo I try to upload. I don't know what else to do. Maybe it is some missing configuration in mi application in Google Cloud or maybe there is a way to set a default sign-in in the config and use that.
from unity-google-drive.
Related Issues (20)
- Installing to Android devices HOT 2
- How do I get the contents of a shared folder? HOT 2
- Game crashes while authorizing HOT 3
- Missing AppAuth.h with playservices updated HOT 1
- 403 error: The request is missing a valid API key HOT 6
- Update Files.List request to support new "AllDrives" parameters HOT 1
- ActivityNotFoundException on Android SDK 30 HOT 3
- Specifying "Name" does not work, always 'Untitled'. HOT 1
- Fix example links in readme HOT 2
- ActivityNotFoundException (com.elringus.unitygoogledriveandroid.AuthorizationActivity) for Android API >= 30 HOT 21
- Only I can upload to my Drive HOT 3
- Add Exceptions to Async HOT 2
- Add Google Drive change events HOT 7
- Google sign loopback authorization system deprecated HOT 8
- 'Ambiguous overloads found' exception when closing Google sign-in screen HOT 3
- Working on Unity but not on Device HOT 9
- Platform-specific client ID
- Add an option to determine the need of prompting for permissions HOT 2
- android.content.ActivityNotFoundException HOT 3
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 unity-google-drive.