Having two Google accounts set up on a Android device, opening a Google Drive file (ex. https://drive.google.com/open?id=XXX) with WebBrowser shows a Google account selector.
If I open the same URI in the Samsung browser preinstalled on the device, or in Google Chrome, it doesn’t show the account selector.
How can I open the URI in an external browser or how can I configure ChromeCustomTabs to not display the account selector?
Has anyone else found it? Give me a hint, or something. Thanks in advance, brothers!
This is based on the shared URL coming from Google Drive. The default shows the account chooser, but you may be able to adjust this behavior by modifying the URL. This link (How to Share Google Drive Files as a URL / Link and Send as a Download) has some explanation on how to adjust a file sharing URL to download a file directly. It might not fit your exact scenario, but there may be something similar you can do with the URL you’re using.
@llamaluvr thx for your punctualization, bro; I have solved it by downloading the files from Google Drive through Expo FileSystem attacking the “uc” entry point of Google (https://drive.google.com/uc?id=${link}&export=download).
@lya2 Hello - I tried to use FileSystem to download files from google drive and I used the direct download link the same as your post. I got an error: too many redirect. But I paste my link to the browser, the file can be downloaded. Do you have any idea? how do you solve this problem?