I have an app written in Java (mobile version on Android and desktop with JavaFX) in which I want to give the user the possibility of saving a file on their Google Drive and being able to share it with everyone.
Reviewing Google documentation, I have seen that I can open a browser screen with a button that the user can press and after logging into their account, upload the file to their Drive. Here I encounter two problems, the first is that the user must manually share the file with everyone, and the second is that I lose the URL of the shared file. I need to use that data in my program.
Could it be resolved in another way? For example, the user would give me writing privileges to be able to upload the file to their account. This way I would at least know its URL to save in my app.
Any advice is welcome. Many thanks for everything