How to navigate to updates section in iTunes from an iPhone App - iphone

In my iphone app I just want to navigate to updates section of iTunes so that a user can see the updated version of my app. I am trying to do it with following line
NSString* link = #"itms-apps://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftwareUpdate?id=My_App_Id&mt=8";
[[UIApplication sharedApplication] openURL: [NSURL URLWithString:link]];
It takes me to the iTunes but after loading for a while, it display a alert i.e "Cannot connect to iTunes Store".
So how can i nevigate to iTunes update section ?
Thanks in Advance.

Send the user directly to your app in the store. The "FREE" or "$" button will reflect "UPDATE".

Related

How to open device Settings to login in to Twitter and Facebook from Social.Framework?

Im using Social.Framework for sharing app specific info to Facebook as well as Twitter everything is working except, if user is not already logged in to Facebook and Twitter in his device that time I want to show a message like login to these sites in device settings and I need to navigate user to Device Settings on tap of this button, my apps minimum deployment target is iOS 6.0 and above, How to take user to Apps Settings Screen from my app?
I heard that openURL is not allowed by Apple from iOS5.0 and above, so that I cant even use the below snippet,
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:#"prefs:root=TWITTER"]];

how do I check my app url for itunes if my itunes apps' name has spaces?

If my app name is "abc : acb1234" on itunes, what would be my app's url?
I know "http://itunes.com/{appName}" would redirect to app's page on itunes but
I don't know what would be the url of appname if I have spaces between app names.
Any help will be appreciated.
Did you add your app in iTunes connect?
If yes: iTunes Connect -> Manage Your Apps -> [Your app] -> View in App Store.
You dont need app name, you need app id,
To navigate user to ur app in itunes just replace ur app id in the given below url
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:#"http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=594105593&mt=8"]];
Dear you can get your application url from https://itunesconnect.apple.com/ .
First login your account and click application summary there you find option view on appstore.

How to open application/itunes store by one link?

I have idea! E.g I send invite to application for my friend by email. I wanna have link in this email. When user will click it, he will open application, if it's installed, if it's not - show iTunes store. Any idea how to realize it?
Communicating with Other Apps
I begun to read this one, but didn't find solution yet.
I provide the method to check whether an app is installed on iphone.
If the URL scheme for your app is "myapp:", then
BOOL myAppInstalled = [[UIApplication sharedApplication] canOpenURL:[NSURL urlWithString:#"myapp:"]];

How to open “Paid” app page in iPhone's AppStore by clicking button in “Lite” app?

I have 2 versions of an app. Lite and Paid. I want to have a button in Lite version which when clicked opens App Store application on iPhone and shows the page for Paid version of the app.
How do I do this? I DONT want to open Paid version iTunes page in Safari. It should open in App Store application only.
This is a bad solution. iPhone opens Safari first, then AppStore.
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:#"itms://itunes.apple.com/us/app/YOUR APP ID NO."]];
Protocol itms-apps:// solves problem. Only AppStore opens.
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:#"itms-apps://itunes.apple.com/us/app/YOUR APP ID NO."]];
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:#"http://itunes.apple.com/{yourCountryCode}/app/idXXXXXXXXX"]];
where XXXXXXXXX is your app id
i think it doesnt get better than this.
EDIT: This link also doesn't know more and is pretty good from what i know: http://wiki.akosma.com/IPhone_URL_Schemes#App_Store

Iphone app links to app store but shows blank page instead of app to download

I´m making an app on iphone and i have a button that links to the appStore in order to download another app.
I´m using the code below that opens safari and instead of showing the twitter app the his on the link, show a blank page.
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:#"http://itunes.apple.com/us/app/twitter/id333903271?mt=8"]];
Anyone knows how to solve this?
Was using the simulator, it doesn´t have a app store so offcourse it wouldn´t show it... Guessing it will show on a real device.