How to programmatically lock an iPad app into one single application? - objective-c

we are doing a product display iPad app and don't want customers to be able to quit the app pressing the home button. We're planning to use only UIGesture to let the admin users to quit. How to programmatically lock an iPad app into one single application without install any third party app or profile?

There is a feature for this added in iOS 6 Beta 2 called Guided Access, see http://www.idownloadblog.com/2012/06/26/ios-6-guided-access/

Install the iPhone Configuration Utility: http://support.apple.com/kb/DL1465?viewlocale=en_US&locale=en_US
Make a .mobileconfig with the SBStoreDemoAppLock property set to true
Install the mobile config on the device.
Installation of the mobile config can be done using either the iPCU app or by opening the file with Safari on the device.
Now the device is in kiosk mode and the home button is disabled.
Remove the .mobileconfig file (again using the iPCU app) and reboot the device to re-enable the home button.

I believe that the common solution to this problem is a case that covers the home and power buttons. In practice, you'll want something that is fairly robust to prevent theft of the iPad, and that neatly covers access to the dock connector whilst providing power.
A quick google search of iPad kiosk case turns up plenty of options. Use of iPads as PoS displays in stores and at trade shows is incredibly popular.

Related

How to Handle iOS Settings if App Uses the Network?

I have an app, in which the user can initiate a short, asynchronous download to access data on the internet, and then the app displays that data. The app is not yet released, but I have tested it on both simulator and several physical devices. On none of them, however, I can locate the app inside the settings menu where I could, for instance, restrict its network access to WiFi only, etc.
I assumed that if my app accesses the internet, it would automatically appear in the settings menu, but apparently it is not so. Am I doing something wrong? What is the process to allow the user to access such basic settings?
I use XCode 10.3, and probram in Objective-C.
If the problem is that there's not a settings entry for your app, please keep in mind that sometimes, in order for an app to be registered, you may need to close your app and the settings app and try opening it again.
If the problem is that you don't see the standard settings for location services, cellular data etc, then you may find maddy's answer here to be helpful: Why is my iOS app forcing a Settings Bundle might be helpful.
Copying the relevant part from this answer:
The iOS 8+ settings page appears […] if the app does any of the
following:
Attempts to access data via a cellular network
Various privacy data
Camera
Microphone
Photo library
Contacts
Location
Notifications
Background data fetch
A settings page may not appear for an app if none of these conditions
have yet been met.

Questions about Windows App (Metro) Tiles/Icons for desktop applications

I have an application written in VB.NET that I want to move to Win10. It will always be a desktop application, however I would like it to have a start icon / tile in Win 10. Looking around I found this exact question which suggests to create a Metro App (now I believe called Windows App) which launches the desktop app. This is also discussed in this thread. So the questions;
These threads are a little old is the best way in Win10 to give a desktop app a Windows App Tile by using a Windows App as the Launcher for the desktop app?
It appears that in Win10 Microsoft has now allowed non-store apps to be installed in Update Security > SideloadApps. This needs to be enabled to install the App, but does this need to be always enabled. For example what happens after install if the user turns it off, will the app then not start?
For example I see in this link that there are 2 Registry keys to change, basically AllowAllTrustedApps and AllowDevelopmentWithoutDevLicense. Is it possible for my desktop installer to change these keys, install the Windows App (and everything else) and then change the keys back again?
Uninstalling? If I created a Windows App which only launched my desktop app then there is a possibility that the user uninstalls or deletes the Windows App, meaning my desktop app would be orphaned and lost. Any suggestion on solving this?
According to your description, I think what you need is Desktop Bridge. There is no need to use a Windows App as the Launcher for the desktop app.
You can try with Desktop App Converter, with this you can bring your existing desktop apps written for .NET 4.6.1 or Win32 to the Universal Windows Platform (UWP).
And after converting, you can replace the Assets generated by Desktop App Converter (DAC) automatically to provide custom Tiles/Icons. For more, you can refer to Manually convert your app to UWP using the Desktop Bridge.

Can I install my own Windows Phone App on a real device without uploading the app to Store?

I'm new to windows phone, and I don't have a real device to test on.
I know that one can install .XAP files from SD card.. but does this process reqires internet access to check that the app is on the store or I just installs it as in Android?
Thanks in advance
You can debug your app on your physical device in Visual Studio. Your device has to be connected via usb cabel to your computer and has to be developer unlocked. You can developer unlock your phone with the Windows Phone Developer Registration Tool, which is a part of the Windows Phone SDK. You can find more information about the process here.
No, you cannot install the xap package on other people devices until unless their phones are not developer unlocked. When you build a .xap package in Release mode, you need to first upload it to Store where the Microsoft team checks package for security concerns. Once that has been checked, package verified, then the packages can be installed, basically uploading the app.
To debug the app, its better to unlock your friend's phone and then test it on it. After that if you wish you can also un-register the phone to revert back to original developer locked mode.
There is one more method which I use when my app is completed but do not wish to release the app on store, but instead, I wish that first these apps be used by my friends first, they give feedback and after that I finally submit the app on Store.
To do this, I submit the app in private visibility on Store. There is an option while submitting the app which indicates whether you want that other users can see your app on phone. I mark it Hidden. Once my app is verified and is on store, I download the app from store by going to the appropriate link of app on store which is given in app profile at dev-center. I choose 'Download and Install Manually' option to download the xap. This xap can be installed on other devices without unlocking their device.

Change Internet Explorer tile to another browser programmatically

It seems to me that if the user installs another browser on Windows 8, the default tile for Internet Explorer should change to that new browser. However, it doesn't seem like Chrome or Firefox currently does this. Is it even possible to replace the IE tile with the tile for another app programmatically?
You can't do that.
All Windows store applications work in a sandbox environment and doesn't have access to core OS api's. App's are restricted to core OS api's so that malicious applications cannot change system setting without user knowing about it.
Start Screen is OS level, and Apps do not have acces to the order of tiles. If they had, user would loose all personalization made as every App would move itself to the first row and column, as Raymond Chen stated.

Questions about Sencha Touch

I have done some project using Sencha Touch -> www.estof.net/sencha (php + sencha). I want to ask you guys some questions:
a) I want to create app using sencha and upload to iPad. My app will work only if i connected to wifi or whatever internet?
b) For example i did some application, draw icon. Can I put it on iPad? Then click on icon and my application will work? (will be nice if app tried even to connect to Internet, but APP ICON will be on iPad)
c) Or sencha using only as a web-site?
Sencha apps can work in offline mode. This is done by using a manifest file to cache the required files. This will explain more about it. This is another tutorial using phone gap.
Yes you can create app icons for your apps. In this link, you can see an attribute named 'icon' which specifies the images to be used as the icon. In safari when you take your site, and press the option button on the bottom, there is an option to 'ADD to Home Screen'. This option will add the icon to the home screen.
If you go to the sencha forums and check their showcase section you can see many apps that are actually sold in the app store.
The upcoming version of Sencha is said to have their own api's to access native feature of a phone os. Its more detailed on their website.