Having a subview inside Unity for native IOS apps - ios

For my iOS app built with unity engine, I have a use case where I would want to direct the user to settings page from within the app itself. I am using objectiveC to create a custom plugin for iOS that directs user to settings page. But it backgrounds the app and brings up the settings page. I would like to be able to achieve this from within the app itself if its possible to show settings in some kind of subview popup in the app? I have seen this somewhere for example where the app brings up a mail subview or a google map subview inside the app itself but not sure if its possible for doing something similar with iOS native settings page?
Currently i am using openURL to simply direct user to settings URL page but I would like this to be embedded in some subview from within the app itself
NSURL *url = [NSURL URLWithString:#"prefs:root=NOTIFICATIONS_ID"];
[[UIApplication sharedApplication] openURL:url];
Any ideas?

It's not possible to show a portion of the Settings app in your own app like you can do with mail or maps. However, you can build your own UI within your app to edit settings.

Related

iOS app deep linking: Return to previous app or access current url scheme of current app

I'm developing a custom keyboard for iOS. When I'm e.g. in Safari using my custom keyboard, I have a button in my keyboard to jump to to keyboard containing app. Then in my keyboard app I have the iOS specific "<- Safari" button in the top left corner to jump back to Safari.
Is it possible to programmatically jump back to the source application (in my example Safari)?
Or can I send the original url scheme to my containing app and then open the previous app (could be ANY) by the url scheme?
It must be somehow possible, because the app Scandit Wedge does exactly what I want. I created an empty test app without any url scheme and with the Scandit Wedge keyboard I can go to Scandit app, read barcode and it goes automatically back to the source app.
Here's a video I recorded:
https://www.youtube.com/watch?v=UiHH4NanlkA
To achieve this you have to implement inter-app two way communication using x-callback-url. x-callback is just a "protocol" to format the NSURL to ease the data processing at the receiver end and also allowed the source app to receive the correct callback function. You can explore more this with evernote and this tutorial.

Open Display & Brightness Settings on AlertView button

Is there a way to open the Settings in Display&Brightness when tapping an alertView buttons? I want the user to be redirected here in order to change its Standard/Zoom view mode.
No.
In iOS 8, there is no supported method for a third-party app to open Settings to anything other than the top level, or to their app's custom settings, if they exist.
What you see in Tinder and Facebook are system alerts that iOS presents when your app wants to use the network or location services and (cellular data or) wi-fi is turned off. This is managed by iOS, and is not something that Tinder or Facebook had to add to their app.

Performing a task through a website and going back to an iOS app

I'm developing an iOS 7+ app that I need to offer the option of navigating to a certain web page to let the users to fill in a form there, and after that to come back to the app's view where the user was.
Is it possible to programmatically open Safari with a given url? If it is, I suppose that then there is no way to automatically redirect the user to your app from there... right? Is then a UIWebView the only option? Is it possible to navigate back or dismiss the view with the UIWebView without the need of user interaction?
Thanks
You can open links in Safari as detailed in this post How to launch safari and open URL from iOS app
I don't believe you can set a 'callback' and have it return to your app on completion, as you have no control over the user once they have exited your app's sandbox.
Opening the link in UIWebView would provide control, as you can utilize the UIWebView callbacks.

iOS UIWebView needs to launch specific URLs in separate browser

I created an iOS app that uses a UIWebView to display a mobile website. The mobile site shows a "back" button within the UIWebView for its web server serves, but some pages provide links that navigate to external websites.
I want to provide a "back" button on those pages to get back to the original web server, but if I can't do this then I would like to launch these external sites in the standard browser in such a way that the user can still navigate the original site in the UIWebView using the "back" button already being displayed by the mobile site.
As it stands, my app cannot navigate back to the mobile site once a user clicks one of these "external" links because those sites do not display a back button to get back to the mobile app. How can I resolve this?
Use the delegate webView:shouldStartLoadWithRequest:navigationType: and open the external URL's in the safari using
[[UIApplication sharedApplication] openURL:[NSURL URLWithString: #"http:/wwww.extrenalurls.com"]]

Is there any way to remove an app from the most used list on blackberry programmatically?

I am trying to deploy a monitoring app and was wondering if one could prevent it from showing up in the most used list.
If you extend your app from Application instead of UiApplication it won't be shown on any home screen at all.

Resources