Prevention user from logout on a shared phone

There are shared corporate phones with an application delivered by MDM.

Is it (possible / allowed) to prevent a user from the app`s logout?

Is it allowed to set a password that (match / differs) from login?

Are there any other solutions?

Accepted Reply

Thank you for your response.

Replies

Let me see if I’ve got this straight:

  • You’re working in a managed environment.

  • You deploy an app to a set of managed devices.

  • That apps supports account switching, that is, within the app, the user can log out and then log in as a different account.

  • You want to prevent that.

Is that correct?

If so, one question: Is this app something you created? Or something you got from a third party?

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

That is correct!

App created by me.

App created by me.

What I would do in that case is change your app so that logging out can be disabled via a managed preference. Once that’s in place, folks deploying your app via MDM can use use managed app config to restrict the log out feature.

There are various Apple documents that explain how this works but, I gotta say, the AppConfig Community web site is a really great resource for this sort of thing.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

Thank you for your response.