IOS Status Bar touch to return to the application

This puzzles me, does anyone know how to do this? The blue luminous status bar, as in the image, as the Facebook application does when starting FB Messenger

enter image description here

Forgive the huge image !!! It would be great if someone could point me in the right direction

+6
source share
1 answer

It seems like a custom view that sits on top of the navigation bar with a custom styled name: Touch to return to facebook . The navigation bar has an action applied to it, so when the user clicks the navigation bar, the following code is executed to open the desired application, in this case facebook.

It uses the iPhone URL scheme through which you can open the application on the device directly from your application if the user has the application installed.

like this:

 [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"fb:]]; //and instead of fb: if you'd want it to open your custom app, //you simply add your own scheme instead: like so myappscheme: 

To configure the scheme for your own application, follow these instructions: from this site

  • Defining a custom application URL scheme is done in the Info.plist file. Click the last line in the file, and then click the β€œ+” icon on the right to add a new line. Select the URL types for the new item. After that, click gray next to the word "URL Types" to display "Point 0". Set your URL id in a unique line - something like com.yourcompany.yourappname.

  • Once you have set the URL identifier, select this line and click the β€œ+” sign again and add a new element for URL schemes. Then click the gray arrow next to β€œURL Schemas” to open β€œItem 0”. Set the value for Item 0 as the name of your URL scheme.

enter image description here

+2
source

All Articles