Xiaomi MI A3 - Android 11
OK, GDC put together before Android 11, this could be the issue. I'll need to work through the code.
Working in my phone running on Android 11.
Thanks for testing Sunny
Are you still stuck, or is everything working OK now?
Nope I am getting the same error from the demo apk.
Maybe the problem is device specific and can be solved by using a valid user agent.
Is Chrome your default native browser?
Yeah I am using Chrome.
P.S actually it's my issue sorry for the miscommunication. Actually when it open a dialogu to open chrome I cancelled it and continued the process therefore this error was occuring.
Actually I thought opening it in chrome was a option and we can also do it in app itself.
Now I done that and it works
But I would like to say that the authentication process is compilcated and google also shows a security alert after authentication. So if I use it in my app users would think that it is not secure.
I have made a notes app where I want to use use users gdrive to save the backup file but this process isn't good for that.
Where in the process do you get the security alert?
When we click on setup and it takes me to chrome and I give permission to gd connector. Immediately I got a notification from Google that gd connector has got the access whether that was you ? And a mail too.
Also I just want access to gdrive of users so can't we do something that it just shows a popup in app for permission as we see in watsapp
I have not found a method to do things in that way with AppInventor, the requirements of the web app are such that the user must give explicit permission - email and password entry, to the web app, which will have full access to a user's google drive. This is google security doing what it should. This is why google insist on using the native browser and not a webview inside an app.
If there is a method to allow this, I am all ears :), but I believe you will still get the security message and email
Maybe this is the reason.
Or did you mean something else? Like access to app specific files and folders.
Nothing to do with the app inventor app, it is all to do with google authentication of a web app.
How about using gdrive Api or sdk
You are welcome to try....
Actually I don't have any knowledge regarding use of api or sdk, else I would have definitely tried it.
Can give it a try, if u have time
I will have a think about it....
I have had a think and a look (again). I would probably have to build an app in android studio in order to successfully deliver, and even then I believe the user would still have to authorise with their password to give the web app permission due to the permissions required, therefore nothing is really gained. The user only has to do this the once on first use, after that, unless the uninstall/reinstall the apk, operation is seamless.