This question already has an answer here:
Closed 10 years ago.
Possible Duplicate:
Open an application from another (iOS)
I want to open my app using another app (also created by me) on a click of a button if it is installed on iPhone.
How I can do it??
You need to register a custom URL scheme in the Info.plist of the app to be launched. Then in the app that does the launching, you use UIApplication openURL: passing in a URL with your other app's custom URL scheme.
Use the following methods
- (BOOL)canOpenURL:(NSURL *)url;
- (BOOL)openURL:(NSURL*)url;
Where url should be the URL_SCHEME specified by you in the build settings (info.plist) for the app you want to open.
Related
This question already has answers here:
Opening the Settings app from another app
(18 answers)
iOS Launching Settings -> Restrictions URL Scheme
(13 answers)
Closed 9 years ago.
Is there any way to open Settings in iOS7 manually ?
i am using UIActivityViewController for providing various sharing options, now problem is if user is not already logged in either in Facebook or Twitter then I need to redirect the user to settings screen and let them configure their accounts from there itself, i have no idea that how to open Settings screen manually, If there is any way to do that then please let me know Thanks in advance.
Since iOS 5.1, there is no official way to open Settings via App.
This question already has answers here:
Launching app OR app store from Safari?
(4 answers)
Closed 9 years ago.
I tried to launch my native app from safari using custom scheme like myapp://.This is working fine when app is installed, but when app is uninstalled ,safari is displaying: page cannot found popup .My requirement is i need to redirect to some page,let's say apple store.
How to do this?Any suggestions?
Is there any update on this?
You can't, since the app handling the custom URL scheme is no longer available iOS does no longer know how to handle the custom URL.
I faced the same issue and appending a question mark (?) at the end seems to resolve it. It was working fine till ios5 but needs this question mark since ioss 6.
While trying to launch you should say myapp://?parameter1=xyz
Hope this helps.
This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
How to enable file sharing for my app?
How can i enable file sharing functionality in iPhone app. I am very curious about this to know because when i connect my iPhone with iTunes then it show me three apps. One is Skype and second one is bump and third one is my own app. My app is about augmented reality and show some videos and images on specific markers, also i did social sharing and APNS work and flurry integration that all major working in my app and I did nothing which enable this functionality but why and how this happen. Kindly let me know. This will be great for me. Thanks.
You should Enable UIFileSharingEnabled in the application plist file, Keep this value to YES like this then your application can share data of your application documents
There is an option in {projectname}-Info.plist named "Application supports iTunes file sharing".
Your app will appear in iTunes File Sharing if the UIFileSharingEnabled key is set in its Info.plist. (This appears in the Xcode editor as "Application supports iTunes file sharing ".) If this is enabled in your project and you're not sure how, either you accidentally clicked something for this in Xcode, or you're working from a project template in which it's pre-set.
Is it possible to open another application that exists on the phone from my app?
Is it possible to check for availablility of an external application?
The other application is also my app.
You can do this with the iOS URL handling features-- for example UIApplication canOpenURL:.
This question already has answers here:
Closed 12 years ago.
Possible Duplicate:
Launch an app from within another (iPhone)
i want to launch another Application in iphone sdk...for example the user has downloaded two application from appstore.when he touch the button which is in one APplication, Another Application must be opened, current one must be closed..is it Possible?
If the target application has a registered custom url scheme, you can use that to open the other app.
http://iosdevelopertips.com/cocoa/launching-your-own-application-via-a-custom-url-scheme.html
I'm pretty sure the only way you can do this is if the second application registers itself as a handler for some DocumentType, and then the first application handles such a document. The user will be prompted to open the document with the second application. You can read more details here.
You can't just launch applications on behalf of the user, though.
You can register a custom URL Scheme in your Application B, and then open it from your Application A using this custom URL Scheme.
More info here