r/dotnetMAUI • u/manuelfraile • Feb 17 '23
Help Request App lock app in MAUI.
Hi! I'm gathering information for my next MAUI project and I would like to do an app lock app.
For that purpose I would need to have an app finder where I can browse all the apps in the mobile and then select them. I would also need then to restrict access to the app only through the app locker.
These 2 issues are the ones that I'm having more trouble to find how to do them. Could anyone give me a hand with this 🙏🏼?
4
u/Party-Stormer Feb 17 '23
I think you are asking the wrong questions. The real questions would be:
is what you are envisaging even feasible on the different platforms? On Android it may be. On iOS, it isn't.
would such an OS-close functionality be a good fit for Maui? Probably not, as the cross-platform parts would be limited, and the effort to integrate the OS functionalities would trump that of making a single UI.
3
u/Boring_Start8509 Feb 17 '23
On android, what your asking for is a custom launcher… on iOS, kiosk mode will be your closest option with a custom app and whitelists.
On windows… nightmare…
1
u/Boring_Start8509 Feb 17 '23
On android, what your asking for is a custom launcher… on iOS, kiosk mode will be your closest option with a custom app and whitelists.
On windows… nightmare…
7
u/bellevuepc Microsoft Employee Feb 17 '23
I think the answer on how to do this has very little to do with MAUI, and everything to do with how to perform such a function on any given operating system. I don't think most operating systems have any direct way of doing this, but I'm not really sure.
So the questions I think are important to ask right now are in this order:
Which operating system(s) do you want to target?
Does each operating system you want to target support such "lock" functionality?
What APIs on each operating system are used to implement this functionality? That is, how do you "lock" an app and how do you enable one particular app (your app) to be solely in charge of allowing locked apps to run?
Then finally, I think the relatively easy part is: how to call these APIs from MAUI?