I wrote a Flutter application, which confirms deliveries (generates signed delivery notes and allows to take pictures). The final step is to send the note pdf file and images to SharePoint.
Currently I register an EntraID app with Redirect URI type as Public client/native (mmobile). I can now upload files to SharePoint, however this requires me to log into microsoft from the mobile device for authentication.
From what I could find, I understand that SharePoint does not allow direct uploading from mobile devices, as they are not secure clients. And if I want to work around the login page I would have to host a separate application, that accepts files and credentials from the mobile app, and then uploads these to SharePoint via Microsoft Graph.
I was wondering if it is possible to solve it without having to write an additional backend application?