iOS banner notification - ios

I noticed recently a banner notification on my iPhone I haven't seen before. I can't find description of these banners, for example here. Here they are:
First of them appears when an app goes in background. Tap on the banner shows the app again.
The second appears when I create a Hotspot and tap on it shows Hotspot settings.
So, my questions are:
What are these banners?
Why they have different colors?
How can I create the same banner in my own app?

The blue banner is there if the "personal hotspot" feature is turned on, and some other device is using the shared internet connection.
The red banner is shown for example if an app that is not currently in the foreground is accessing the microphone.
Both banners are provided by the operating system and are not customizable by app developers. These banners can sometimes make problems when your app is not prepared to re-layout its views as a result of this banner appearing or disappearing. Therefore, you can simulate this banner in the iOS-simulator by pressing CMD-Y (XCode6 iOS Simulator => Hardware => Toggle In-Call Status Bar).
Furthermore, these banners are not really "notifications", they are more like status hints that provide a visual cue to the user that the phone is in an exceptional state (red=microphone access, green=a phone call is in progress, blue=personal hotspot is in use.)

Related

Apple Watch interaction with Home Screen

I am automating Apple Watch ui testing and currently I stuck with the problem interacting with Apple Watch Home Screen (e.g. tap, press, scroll, etc.)
I know that testing is happening in the sandbox of the app under test, but I need to interact with the elements on Home Screen when the app under test is running on the background.
I know that Appium does similar thing to iPhone's Home Screen via "com.apple.springboard" which is the app, that manages iPhone's Home Screen, but what about Apple Watch? Is there a way I can interact with Apple Watch Home Screen?
Per the other question you have open regarding the iOS home screen, the watch can be interacted with the following bundle identifiers:
com.apple.BackBoard, com.apple.BaseBoardUI, com.apple.PreBoard, and com.apple.ReBoard.
The following debug command should show you what's available for interaction:
po XCUIApplication(bundleIdentifer: "oneOfThoseBundleIDs")

Is it possible to programmatically open an app on an iOS device based on a trigger from a web api

I want to use an old iPad to view an ip camera feed. Instead of keeping the iPad on all day, I want to be able to tell the iPad to wake and open the camera viewer application when the camera senses motion. (Not just a small notification on lock screen, I want to be able to view a full screen image of the cameras feed). After a given period of time the iPad would go back to an off/sleep mode. Is this even possible in iOS? Thanks!
Take a look at the "Singe App Mode" and "Background Execution". Choose an event type that can take your device out from background mode, like VOIP. Do not expect the app to be accepted in the public app store.

How to show iphone app icon on lock screen same as camera on bottom left

How to show iPhone app icon on lock screen same as camera on bottom left.
Is there any framework required to implement or just go to settings page in iPhone.
How to do it exactly please described step wise.
Thanks in Advance
You might have seen in certain circumstances some app icons are showing up in the bottom left corner of lock screen. That is an iOS 9 feature. that may be because of following reason.
You're near a business or iBeacon that is broadcasting its location and you have a corresponding app installed, such as being near a Starbucks store; drag the icon to the top of the screen to launch that app.
You're able to use Handoff to take over from an app on another device. For example, if you're composing an email message on your iPhone and switch to your iPad, drag the Mail icon that appears on the iPad up to load the message you were working on in the Mail app.
When you insert a headphone jack into the device's headphone port, or connect to a Bluetooth stereo, iOS 9 guesses you want to listen to something and displays the icon of the last audio app you used when connecting headphones or pairing to that particular speaker. Drag the icon up to open that app.
Reference : http://www.imore.com/how-use-home-screen-and-lock-screen-your-iphone-6s
Apart from these, there can be more reasons, like if you are using an application at a particular location/time for few times/days, then iOS will suggest the app once you reach that location or at particular time of every day.
you can't do this kind of stuff from code or from your application. It is apple's restriction. and you can't change it or replace with another app. it is by default camera app.

How to put an icon on the iPhone lock screen?

I am not certain what OS made this capability available but I noticed that on my iPhone 5 (which is running the beta iOS8), when the phone is locked a "W" icon was appearing at the bottom-left. It shows "Slide to Unlock", the camera icon on the right, the "bar" that lets me access the control center in the middle - and a "W" on the left. Sliding this "W" up launches the Walgreen's iPhone app. I do not think this is a normal UINotification, nothing in Passbook, and when I go into the Notification Center settings, turning all notifications off for the Walgreen app, the icon still shows.
Is this a notification? Is this a plist parameter? Bug?
Thanks.
This is a new ios 8 feature that displays an app (purchased or not) that is relevant to your location. You must have been near a Walgreens at the time. As far as I know, there is no way to choose that app or submit an app for that. Apple decides what displays there.
You can turn this off by going to settings > General > Handoff and Suggested Apps. Then turn off Installed Apps. According to the description, these Apps are suggested based on usage and location.

iOS: How to prevent the splash screen from showing when the app goes into background to make a call?

The app that I'm working on is automatically showing the splash screen only when it goes into background to make a call.
The other functions of going out of the app and becoming active again does not "activate" the splash screen. For example, going out of the app into an external website, phone map or another application and coming back into the app will show user the previous state and does not show the splash screen.
Is this something that can be controlled by the app side or is this an iOS feature that apple automatically handles when a phone call is made?
I have managed the leaks on the app side and all is good now so it can't be anything to do with memory management on the app side. Is there anything else that can be done indirectly so that the splash screen will not show?
The launch image is not a "splash screen". The launch image is used to prevent show a black screen while the app is loaded, and you should use it with an in-app screen which gives the feeling of a quick launch. If you don't show the launch image, you will get a black screen.
Workaround
So, as workaround, my suggestion is that you take an static snapshot of your App, something generic (like the background and toolbars) and use it as launch images. This will give the appearance that the app start immediately, without "splash image". This is what Apple apps do, you can see this in apps like Stocks or Settings.
You see?. The left screen is how your launch image should look.
Check this Apple documentation iOS Human Interface guidelines to understand this subject.
Good luck!

Resources