launching two app in iphone sdk? [duplicate] - iphone

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

Related

app launch using custom scheme showing error in safari in ios [duplicate]

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.

How to enable file sharing in iPhone app using iPhone sdk [duplicate]

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.

Open an iphone app using another app [duplicate]

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.

Send SMS from iPhone app [duplicate]

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
How to programmatically send SMS on the iPhone?
I wanted to design an app that would send SMS messages to your contacts from within the app in the background. However, I cannot seem to find any tutorials on it and the Apple Docs arent anyhelp. I have also read somewhere that it is outright impossible.
But if so, how does the app, iDistress manage to do it? It send text messages from preselected contacts with a custom message : http://www.buzapp.com/idistress.html
Check out the screencast.
Thanks.
Are you a registered Apple Developer? If so, you can use the 4.0 framework to show the composer window and set some of the values programatically inside of your app, without having to ever exit the app. However, you will have to wait until the new iPhone and OS4.0 comes out, roughly about June/July, to release the application.
Remember: you are not allowed to discuss details of iPhone OS 4.0 anywhere else than Apple's official Developer Forums, which you need to be a registered Apple Developer to access.
http://developer.apple.com/iphone/prerelease/library/documentation/MessageUI/Reference/MessageUI_Framework_Reference/index.html#//apple_ref/doc/uid/TP40008274
Direct access to the SMS and Email features aren't available in the official SDK. iDistress sends a request to a web service that they host (which sends out emails and text messages from their server)
I've been looking for how to do this and was told it couldn't be done. Then today, I try this new app called Highlight, and sure enough, it does it. When you sign up, you pick contacts from your list and then the app goes straight to SMS and pastes in its own text as an invite message. What do they know that we don't know?

Can we call one iphone app from another iphone app?

Say, that i am clicking on one iphone app icon,when launched it will create one .app file.So is it possible to call one more iphone app from that app.Or can we do something in that .app file such that it will call another app.
Yes: you need use URL Schemes:
Essentially, one app registers the fact that it handles a particular URL prefix, and then to launch that app, you have to navigate to that URL.
You can pass parameters through this URL too
If by calling another app, you mean to use other app as a service then No. One iPhone app can not communicate with another iPhone app.
The best you can do is launch another iPhone app from you app. You need to know the URL for that other app. If you want other apps to launch your app then you need to register a URL for your app so that other apps can launch your iphone app using that url.
Please note here the app will only launch if it is already installed on the iPhone. It will not automatically get it from iTunes.