iPad Kiosk application // Guided Access and empty Battery - ios

We want to use iPads with iOS7 for an POS/Kiosk application. We use the guided access mode to restrict the customers to one app. The store will shut down the power during weekends, so the iPads will run out of battery. This raises several questions:
Is there a way to send an ipad to sleep mode and awake them programmatically? So that the iPad battery might last a complete weekend without power?
What will happen when the power resumes, if the ipad blacked out?
Will the last run app be resumed in guided access mode?
Any help is appreciated! Thanks for your help!
Chris

Don't disable access to the hardware buttons. I've never had problems with people turning off the device during the business day.

Alright, after quite some time I can give an update on this. The way we used in the end was a MDM solution (mobile device management). We had less then 100 devices to manage, so we use the free version of meraki (https://meraki.cisco.com/). Which is an awesome tool. With Meraki you are able to remotely to install certificates, that lock the iPad completely.
In a way, that if you don't have Wifi / Internet on the iPads, you cannot remove the lock, without resetting the iPad completely.
Coming back to the original question, the iPads run on battery until they die in the morning. And they are charged throughout the day. So it's a complete load / discharge cycle everyday. Since there is no way of changing this, we stopped to deploy iPads for POS in-store projects and switched to Android devices like without battery.
Hope this helps someone!

Related

iOS app to lock screen or turn off device after a specific time

I have experience programming in OS X but have never programmed in iOS. I want to create a special iOS apps for my special needs to prevent my kid from spending too much times in my IPhone/IPad. It's a simple app which allows the user to set the time and once the time elapses, the device can be either turned off or its screen will be locked.
May I know whether this is possible and what are the APIs involved? I just need a very brief idea for me to kick start.
Thanks in advance.
Your requirement is really special.
Unfortunately there is no way to lock your iOS device or automatically shut down it, unless you jailbreak the phone.
I would set the device to Kiosk Mode (Guided Access) or Single App Mode (Using Mobile Device Management). This will prevent your kid from exiting the app.
You could then program your app to stop responding after the elapsed time. It can't shut down the device, but should lock the screen after x minutes of inactivity (configured in the settings).

Getting an iPhone off wifi

I'm in the process of testing routerequipment, and in that test i'd like to control wireless devices, so that they simulate leaving the area.
On android I have created a small app that receives commands (e.g. watch this on netflix, turn wifi off, browse to this page), to simulate user activity. Though this is great, it's not possible (maybe it is, but I have no iOS development skills, and my research tells me that it's almost impossible to automate, espeacially things as wifi, on iOS, unless you jailbreak it, and use private SDK's).
So my question here is more of a way to get ideas. Does anybody have any idea how to automaticly turn wifi off an iphone to simulate it leaving the wifi coverage area?
Bear in mind that this needs to be automated somehow. The best thing I can think of now is simply cutting the power to the iphone, and turning it back on and let the iPhone boot. Another solution, rather wicked, would be a small model-train leaving the wifi-coverage with the iPhone - haha, how awesome would that be!
Another thing I've tried is jamming by sending deauth-signals to the iPhone. While that works, it does not automaticly log back on the wifi, unless you manually lock and unlock the iphone. It would have been a great and simple solution, but it doesn't work.
I really hope somebody here has a great idea :)
have a great day! :)
/Benjamin

Keep iOS App Awake To Monitor Movement

I'm having trouble getting the main feature of my iOS application to work. I'm trying to create an app that measures the amount of movement over a period of a few hours using CoreMotion. All works fine when the device is awake, however the issue is that the device auto locks after a while and enters the background state, thus my methods for monitoring movement pause.
I'm searching for a possible solution to recording the device's movement whilst it has been locked, which may be to keep the app awake for a few hours at a time. I've looked into a bunch of possible solutions that have been used for this in the past, yet found out that these ways of doing it can now cause the app to be rejected by Apple.
Any help would be much appreciated please.
For anyone who is interested or stuck on a similar problem I figured out the solution to my question. I needed to utilise the iPhone's motion coprocessor, which tracks movement overtime and stores this data on the device. This is part of the CoreMotion framework and can be queried regardless of whether the application was open or not at the time of use. It's also worth mentioning that only the iPhone 5s and later have this hardware, so older devices will no be able to take advantage of this.
I hope this helps anyone who needs it.

Using my everyday iPhone for iOS app device testing

Today i signed up to Apple's $99 a year iOS developer program. I'm currently working on certificates, Identifiers and Profiles part so i'd be able to first test my apps on real device. I have available an iPhone 4s, iPhone 5 and iPad mini. These are my family's devices. If i use my mom's iPhone 5 for example to test my apps, would there be any negative affect to the iPhone what-so-ever? Lets say i turn off the device from Xcode and want to use another device, would iPhone 5 malfunction in any way or is it completely safe to use my main everyday device for testing?
No, In no way will it affect your everyday tasks like calling, texting, etc. When you run your project with your phone being the one you want to run it on the app will show up and stop whatever you are doing at the time but it won't have any long term effect on you or your mom's phone. However to make your app go on the phone you need to register the phones you want to use in development mode. If thats done you should be all good
Good Luck and Happy Developing!
I've been testing my app on my everyday iPhone for months now. I've had no issues at all. Nothing affects my iPhone negatively in any way. Also, don't be afraid to delete your app completely from your iPhone if you need to fix something. It also won't have any negative affect on your app or on your phone. Uploading and deleting your app has the same effect on your phone like you download an app from the App Store. That doesn't have any negative affect on your phone. Your uploading your app from Xcode to your phone will not have any negative affect.

How to persist communication after shutting down/turning on the device?

I'm developing an iOS application to keep track of certain system information from the device. The application is supposed to keep sending information even if it is in background. Everything is working fine but when I shut down the device and then turn it on, the application is still in background but it won't communicate the information. Can someone help me to become active my application after turning on the device?
when I shut down the device and then turn it on, the application is still in background
No, it isn't. The app launcher pretends that it is, but in reality it's been shut down. And there's no way you can re-open it programmatically (even less chance for opening a currently dead process from within itself....) - The only reasonable solution I could think of is jailbreaking the device and hooking into SpringBoard so it re-launches all open apps upon reboot, but I don't believe that's a viable option for you.
One way you could achieve this is by the application creating local notifications. These will persist through shutting down the device.
See this fine tutorial: http://www.icodeblog.com/2010/07/29/iphone-programming-tutorial-local-notifications/

Resources