ios - When is 'isRunningInStoreDemoMode' true? -


i looking solution present apps on trade shows.

i know can install profile device undocumented com.apple.defaults.managed payload disable home button of device. nice way present app on trade shows. however, have features shouldn't activated on such shows or kind of data shouldn't stored on device during demo mode.

as key enable through mobileconfig files sbstoredemoapplock thought make private +[uiapplication isrunninginstoredemomode] return yes isn't case. know under circumstances method return yes?

i know private api code ment in beta distribution, isn't important. please don't comment , tell rejected apple!

any appreciated! thanks!

isrunninginstoredemomode

i took in uikit. in function is:

cfpreferencesgetappbooleanvalue("storedemomode", "com.apple.demo-settings', &value);

i grep binaries , saw it's used in quite lot of places. however, didn't find code it's set. (potentially, wrong this, because spend quite small amount of time on , grep through simulator binaries, different real device binaries).

also, couldn't set through com.apple.defaults.managed (only limited set of settings set way).

so, assumption api reminiscence of old kiosk mechanism replaced/evolved.

simplest way

i think simplest way have special build demo, instead of trying find private api distinguish between kiosk mode , normal mode

guided access mode

if challenges. can take @ new kiosk mode mechanism - guided access mode.

there 2 ways enable it: a) through ui (https://www.appcertain.com/apple-guided-access-mode-parents/) b) using apple configuration (https://itunes.apple.com/us/app/apple-configurator/id434433123?mt=12)

there library /usr/lib/libaccessibility.dylib. has api axsguidedaccessenabled(); didn't use it, assume return whether device in accessibility mode.


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -