Load assets from external sources after APK installation

Hello!

Either I'm just tired and blind but I can't seem to find a solution for my issue:

I want people that have the app APK to be able to, after installing the app, get assets from OneDrive. Like a button in the app which fetches assets from OneDrive (which they must log in to of course).

More in depth explanation:
User gets APK, installs it. After opening the app, they need to press a button to open OneDrive, where they will be able to download a folder with all necessary extra files to use the app (images and information). The idea is that you need to log into my corporates OneDrive to be able to access the files. This way, even if someone gets the app APK from outside, won't be able to get any crucial information.
Of course you could just steal one of the company phones but they get wiped if so, so the issue isn't there.

Sorry for bad English and thank you for your help!

Do you have an api, auth token (if required) and a method for connecting to and downloading from OneDrive ?

Hello!

As of now, I have direct links to files. This way the user logs in on OneDrive but OneDrive itself is slow to open so my goal is to be able to directly download files (or if the user could manually do it, however the case).

To gain access to the files, since it's a work phone, you simply need to be logged in on OneDrive. I can get a download link created in OneDrive which instantly downloads the files if you put the link in a browser, however, how to implement it and be able to store the downloaded files in the app is my problem.

I tried to explain it as best as my translating program would allow. Let me know if you need me to clarify more :slight_smile:

If you can do it through a browser, then try the native webviewer with my webviewextra extension

This can be set to download files, by default, to the Download directory, or to the user's ASD.

Perfect! I'll try that.

I know how to fetch files from the asset folder but how would I fetch files from ASD for example? And how would I show it in the app?

Thanks!

Use the File component to get a list of the files in your ASD, and the path to the ASD.

Superb!

Thank you so much for you help! :smile: