how to add one or more apps in single app - ios

I have a situation,
where more than two separate iOS apps together to form a single app. The apps have entirely separate to each other and concept is money based program. Is there any way press a button and one project would run. And the press another and another project would run.
In App Purchase will help for this question, like this
Notification center label http://imagizer.imageshack.us/v2/800x600q90/12/v4v4.png
Second, How to update that single app when more than one app was incorported and how to show notification on top of the app. Is there is any tutorial for this question.
Please help me, I saw one or two solution but i didn't get any idea for this question.

It is easy. Just use an open url scheme and give the link to the other iOS application that you wish to open from within your application.
Refer to "Communicating with Other Apps" in the following developer documentation:
https://developer.apple.com/library/ios/documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/AdvancedAppTricks/AdvancedAppTricks.html
NSURL *myURL = [NSURL URLWithString:#"itunesLinkToOtherProject"];
[[UIApplication sharedApplication] openURL:myURL];
To come back to your app from the other application, use a similar custom URL scheme for your app within the other application. Thus you will be able to go from your app to the other app and vice versa.

Related

How to read content of an iOS app from another app?

I am stuck somewhere. My client wants me to develop an application that has a dedicated icon over other applications as well. For example – If I have an ecommerce application opened in my iPhone, there should be an icon over that application through which I can take screenshot and add the image to my application. I know this is possible in android, but is it possible in iOS as well, if yes then how?? Also refer the image attached for more clarification.
Share data between two applications
Historically, the iPhone has tried to prevent data sharing between apps. The idea was that if you couldn't get at another app's data, you couldn't do anything bad to that app.
In recent releases of IOS, they've loosened that up a bit. For example, the iOS programming guide now has a section on passing data between apps by having one app claim a certain URL prefix, and then having other apps reference that URL. So, perhaps you set your event app to answer "event://" URLs the same way that a webserver answers for "http://" URLs.
Have a peek under "Implementing Custom URL Schemes".

How to use url scheme for application not installed in device

I have an application in store, which allow to display a list of items in a first view, details of an item in the second view.
I use the url schemes to access to the details of an item from an external source (Facebook for exemple)
My question: if the application was not installed in the device, is there any way that allow to download the application and open it at the right item (using url scheme)
Thank in advance
For iOS>9
if ([[UIApplication sharedApplication] openURL:SchemaURL] == false)
{
[[UIApplication sharedApplication] openURL:iTunesAppURL];
}
What you're describing is called Deferred Deep Linking (Deep Linking refers to using a link to open your app directly to a specific piece of content, and Deferred means that it works even if the app isn't installed first).
Unfortunately there's no native way to accomplish this on either iOS or Android. URL schemes don't work, because they always fail with an error if the app isn't installed. Apple's newer Universal Links in iOS 9+ get closer in that they at least don't trigger an error if the app isn't installed, but you'd still have to handle redirecting the user from your website to the App Store. You can't pass context through to the app after install with Universal Links, so you wouldn't be able to send the user to the correct item, and they actually aren't supported in a lot of places.
To make this work, you need a remote server to close the loop. You can build this yourself, but you really shouldn't for a lot of reasons, not the least of which being you have more important things to do. A free service like Branch.io (full disclosure: they're so awesome I work with them) or Firebase Dynamic Links can handle all of this for you.
First Query that URLScheme and know about the status of the application whether it is installed or not. If it is not installed give him/her a popup to install that application from app store. You can navigate user to app store link when clicks OK from alert.

iOS - Get data from other app, communication between two

I have two apps, the first app calculate information automatically in background, the second app need to read this information periodically, how can I do to create interaction into two apps, can I use a file to do this ?
apps are sandboxed ... meaning one app cannot talk to another app directly either read its data or share.
The only thing you can do is send info from one of your app to a server and read that info from that server in your second app.
Your apps can interact via App Groups. First app create a file into shared container and other read it.
Yes Communication can be made between two applications in iPhone but limited to a handful of scenarios.
1>There might be apps which need to be sending to background according to some event like phonecall,etc.In Such cases you will have to configure your audio-session object (a Voip based app) and send notification accordingly.
2>The previous example is just interacting between apps with extremely less flexibility(sending app to background on some important built in event).The other way to do this is through URL Schemes , apple has some built in functionality and support for certain applications such as mail.tel , etc.But one of the application will come to foreground.
Like you can call a phone number , which is built in application using :-
NSString *phURL= [NSString stringWithFormat:#"tel:%#", [NSString StringWithString:#"1-800-555-1212"]];
NSURL *phoneURL = [NSURL URLWithString:phURL];
[[UIApplication sharedApplication] openURL:phURL]];
By the way it's along story if You need to implement a Custom URL Schemes..have fun with it.
3>The other way is through UIDocumentInteractionController which provides in-app support to have interaction between certain files.(Sandbox environment inhibits a complete access or even accesses that can modify data of other application).Like it can be used to preview files in mail app or download attachments.But you cannot modify them for other application , of course you can copy it and modify it for your application.
Source: Link

QuestionAboutCreating IOS SDK in order to hook one app onto another app

I got one question, Need help. Thanks.
Question: One App have already been created which will delivered Ads based on data, right now, I want to hook this app to another app but without wrapping the whole App to the second App, which i searched would create a static framework, but not that in that, the second App will just deliver one simple ID,and retain one banner space for showing the upcoming Ads, then in my App-server, It will only return the Ads to the second App.
How to do this ?

redirect iphone app to apple store

I have an iphone app, and when there are upgrades available, I want to prompt the user to upgrade, and if they click upgrade, I want to redirect them to the apple store. How is this done?
Thanks
Apple documents the process here: http://developer.apple.com/library/ios/#qa/qa2008/qa1629.html
The basics boils down to using an NSURL to open an iTunes link:
NSString *iTunesLink = #"http://itunes.apple.com/us/app/warehouse51/id364201184?mt=8";
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:iTunesLink]];
However, I don't believe there is a way to direct to the upgrade tab.
Note: phobos links are generally outdated, so ignore that your link won't look like the example in Apple's doc. It will generally look like the one in my updated example here.
Just open the appropriate iTunes URL for your application. Users will have to go to the update tab on their own, though.
You'll either want to use a Push notification, or have your app check somewhere online (that you can update) so when an update is available you can present an alert. Then, upon an OK from the user, simply send 'em to your app in the store using the itunes URL.

Resources