I'm planning to use the MPNowPlayingInfoCenter API to set an image on the lock screen.
Can I do this without actually playing any audio? It's only the lock screen image that I want to change.
If I can do it technically do you think Apple will let it into the app store?
You are not supposed to change the lock screen image programmatically unless you are not planning to release it as an internal app.
No. Even if you manage to do it, your app will not be accepted by Apple.
Related
I am making an app using Swift and plan to release it to the apple store. Is there any way to change the lock screen image automatically when you are not on the app by allowing certain permissions?
Thanks!
sadly, there is no access to the lock screen image!
I want to display emergency contact on lock screen of iPhone.
I've found one link to an app Launch emergency App/Do emergency call without screen-unlocking the iPhone but it is saying that apple will not approve this,
I saw some other applications on the AppStore:
https://itunes.apple.com/US/app/id317958642?mt=8&ign-mpt=uo%3D4
https://itunes.apple.com/us/app/ice-in-case-of-emergency/id380234187?mt=8
Can any body tell me how to do this?
Easy, the ones in the app store create an image with the emergency numbers on them.
Then the user can set this image as there lockscreen. I've create an app like this.
But there is no way to make a swipe/click call the number from the lock screen.
It is impossible to set the Lock Screen wallpaper programmatically without jailbreak.
However, you can change the lock screen appearance by playing a sound track with customized album cover, which is the emergency image.
See MPNowPlayingInfoCenter for more information.
Note that this approach may burn a lot of battery, and user cannot enjoy other music while using your app.
Use " Emergency info screen" iPhone app. It's awesome and simple to use.
I've been using the emergency info screen app and its simple and flexible to my needs.
https://itunes.apple.com/au/app/emergency-info-screen/id657684240?mt=8
With iOS 8 and later you can use the Health.app to define your medical ID and store emergency contact details with it. Then, from the Health.app, you can tell iOS to display this information from the emergency lock screen.
See here for a step by step guide.
my iOS application has the option to change the background image, there are 3 different background patterns available, and the user can select any of them.
The problem is the launch image, reading the iOS HIG it is supposed to be an image similar to the GUI (first 'window') of the application. Is it possible to load a different image depending on a user prefference (the background pattern selected)?
Thanks!
It is not possible to do so - you can only have one default.png, and you can't alter it programmatically before the app starts. I'd recommend simply creating a splash screen different from the app's background. Note that the iOS HIG is a Guideline not a requirement.
It is not possible. Default.png needs to be set when you compile.
You cannot change the Launch Image during app launch (or anytime during App execution). The way to handle this (realizing that you might be violating the HIG) is to present your own image directly after applicationDidFinishLaunchingWithOptions, and leave the Launch Image as either an intermediate image or blank.
I need to make a screenshot of the iphone desktop and set it as background for my app, is it possible?
UIGetScreenImage should do what you want - check out this example.
But apparently, Apple (in its great wisdom) has banned its usage in apps for the App Store, and has removed it from iOS 7 arm64 and newer.
If you are looking to take a screenshot then you need to press the menu button and the lock button at the same time, as for setting it as the background of the app, just use the image which will automatically be placed in your camera roll.
I would like to update the application icon and the splash (loading) screen of my app dynamically if possible, by storing the data in SQLite fetched from a webservice
I pretty sure the answer is going to be no but thought I'd get confirmation
Thanks
You can change the Default.png file by putting a symlink in your app bundle:
http://collison.ie/blog/2008/11/dynamic-defaultpng-files-on-the-iphone
The same technique might work for the Icon.png, but I doubt it, and if you could get it to work I imagine you'd have to HUP the SpringBoard (which you can't do on a non-jailbroken device).
It looks like Apple has removed the ability to set a badge for your app other than through push notifications (which in that case can only be a number according to the docs).
EDIT: This hole was closed in 3.0:
Dynamic (Default.png) splashscreen in 3.0 [iPhone SDK]