Shutting down and locking iPad with code?

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
grovecat
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 99
Joined: Thu Aug 04, 2011 10:32 am

Shutting down and locking iPad with code?

Post by grovecat » Wed Sep 18, 2013 10:44 am

My three-year-old grand daughter is allowed to play with the iPad for a 20-min period limited by some sort of timer app (not sure at this stage what it is as they are overseas). She has worked out how to reset the timer and start again. Modern kids ...

I'd like to develop an app that after a certain (settable) period shuts down the iPad and locks it. I'm assuming that her parents will have to make it unlockable via password (and they have probably done that). So I suppose just shutting down would do the trick.

Is there a way of shutting down an iOS device with a LiveCode instruction?

TIA
Don

Jellicle
Posts: 453
Joined: Thu Feb 24, 2011 11:07 am

Re: Shutting down and locking iPad with code?

Post by Jellicle » Wed Sep 18, 2013 11:13 am

No.

iOS has a system for restricting access to certain apps and features. It's in Settings - it's designed to stop kids doing naughty things.

Gerry
14" MacBook Pro
Former LiveCode developer.
Now recovering.

grovecat
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 99
Joined: Thu Aug 04, 2011 10:32 am

Re: Shutting down and locking iPad with code?

Post by grovecat » Wed Sep 18, 2013 11:55 am

Thanks Gerry

That is a useful tip, but I gather now that they simply want to stop her resetting a timer that alerts her parents when the time is up. (So I don't actually need a shutdown command after all).

I think I will make a simple background timer that can only be accessed via a password.

Cheers
Don

Jellicle
Posts: 453
Joined: Thu Feb 24, 2011 11:07 am

Re: Shutting down and locking iPad with code?

Post by Jellicle » Wed Sep 18, 2013 12:27 pm

Don, she'll work out how to kill you app in no time :)

g
14" MacBook Pro
Former LiveCode developer.
Now recovering.

Post Reply