iPhone App Button To Go To App Store and Leave a Review - iphone

I am trying to set up app where user can touch a button and go to the App Store to leave a review. I am using iPhone simulator 5.0 and I keep getting the address is invalid.
I am using this format:
-(IBAction) leaveReview {
NSString *reviewURL = #"itms-apps://itunes.apple.com/us/app/mood-color-secrets-women/id495880078?ls=1&mt=8";
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:reviewURL]];
}
The address works in Safari as:
http://itunes.apple.com/us/app/mood-color-secrets-women/id495880078?ls=1&mt=8
Do I have a format error? or Is something changed in iOS 5.0?
Is there an easy solution I am missing?

The itms-apps://... address is only works on devices.
BTW, try Appirater, a utility that reminds your iPhone app's users to review the app.

Have you tried this on a physical iOS device? If not, I think the issue may be that the iOS Simulator does not feature the AppStore. Therefore, since the URL Scheme says "itms-apps", the simulator is not finding the AppStore, so it will not open.

For my Apps, I've used the following format (I put it in terms of your example.)
// Where 123456789 is the App ID
NSString *reviewURL = #"itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=123456789";
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:reviewURL]];

Related

Rate my Application in iTunes within my Application in iPhone

I have to provide a link in my app where the user touches on it it will take me to the itunes Appstore page of my application where the user can rate the Application. I think other apps try to access the Appstore Application in the device and pass the corresponding url of the application in itunes... How to do this? Any ideas...
Here's my method; this goes straight to the App Store and to the Review/Rate page for my app:
- (IBAction)rateGame {
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:#"itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=409954448"]];
}
Just change the id at the end (409954448) to the id for your app. Also, if you track the launch count or something, you can trigger this method after, say 12 launches to increase ratings. I added this in my update and in about 2 weeks it generated 5 ratings. Very useful.
NSURL* urlToMyApp = #"http://url.to.my/app/in/the/app/store";
[[UIApplication sharedApplication] openURL:urlToMyApp];
You can also use,
See link below, It will redirect you on app store app details page.
StoreKit.framework not needed.
http://www.brianjcoleman.com/tutorial-how-to-add-write-a-review-rate-us-feature-to-your-app/
Notes :
If iOS >= 7 use, [[UIApplication sharedApplication]openURL:[NSURL URLWithString:[NSString stringWithFormat:#"itms-apps://itunes.apple.com/app/idYOUR_APP_ID"]]];
This will not work on simulator so don't test on Simulator :-)

Help me to run a iPhone application

I am going to develop a iPhone application.
In that i need to run another iPhone app when the user clicks on the button.
Is it possible to run a iPhone app from another iPhone app?
If possible, Please let me know your inputs on this.
Thanks for any help.
[copy and paste of a previous answer I gave here for the click-averse]
You can use the url scheme built into iOS. For example, you could call Safari with a url because it is registered as the application which handles the http URL scheme
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:#"http://www.google.com/"]]
The openURL: method is an instance method of the singleton UIApplication instance, on which you can call any application installed which registers in its plist an ability to handle some sort of input data.
Here's a list of common url schemes in iOS.
A little known way to detect the existence of another application on a device is to use canOpenURL: on the same singleton instance:
if ([[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:#"cydia://"]])
{
NSLog(#"cydia installed");
}
else
{
NSLog(#"cydia not installed");
}
Only if that other app is already installed and run and has been designed to register a custom URL handler to itself with the OS.
The your app can run it by using that custom URL scheme.
If the app has a custom URL Schema and you know what it is, then it is possible to launch another app form yours.
When user pressed the button, your current app will close and run the new app..
Yea.. Its possible.. BUT you must know the "short link" of the other app.. I tried it before and even successfully transferred data from the lite version to the full version..
Its called url scheme..
Here's a link:
http://www.idev101.com/code/Objective-C/custom_url_schemes.html
Hope it can achieve what you want..

how to open app store with in our ipad or iphone application?

Hi i want to open app store with in our application with the specific publisher search or specific application types..on clicking of button..let's say More App's...
You can get the appropriate URL to your app here:
http://itunes.apple.com/linkmaker
If you enter the name of your company the linkmaker will provide an "artist link" that shows all of your apps.
If you use the itms-apps:// prefix the user is sent directly to the
App Store App with the specified app showing rather than the ugly
first-Safari-then-the-App-Store-App shuffle that you get without that
UTI. A la:
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:
#"itms-apps://yourAppLinkHere"]];
To generate a link that is universal and not specific to an App Store Country do the following
Use
itms-apps://**ax.itunes**.apple.com/app/yourAppLinker
where yourAppLinker is the part of the link generated in (http://itunes.apple.com/linkmaker), as in Matthew Frederick's post, which contains your application name and id
it worked for me
cheers
For IOS7 and later for example:
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:#"itms-apps://itunes.apple.com/app/id547101139"]];

In-app Review Link

I am trying to link directly from my app to the review page of an app.
This works perfectly with some of my App ID's, like this one [375031865]:
NSString *reviewURL = #"itms-apps://itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?id=375031865&onlyLatestVersion=true&pageNumber=0&sortOrdering=1&type=Purple+Software";
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:reviewURL]];
This also works (Same APP ID, different link format):
NSString *reviewURL = #"itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=375031865";
But does not work with other App ID's, like this one [392551011]:
NSString *reviewURL = #"itms-apps://itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?id=392551011&onlyLatestVersion=true&pageNumber=0&sortOrdering=1&type=Purple+Software";
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:reviewURL]];
OR:
NSString *reviewURL = #"itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=392551011";
I have no idea how the same exact link with a different APP ID in it will work for some apps but not others. The error that comes up is "Cannot connect to iTunes Store"
Any ideas?
Thanks!
for 392551011 = The DumDumb Exam HD
try:
NSString *reviewURL =
#"itms-apps://itunes.com/app/thedumdumbexamhd";
Entering the above URL into Safari on the device will take me to the App Store page. The URL string is the app name taken from the URL:
http://itunes.apple.com/us/app/the-dumdumb-exam-hd/id392551011?mt=8
then converted into lower case and the spaces and the dashes removed.
You should carefully find out your app ID! Sometimes it differs for desktop and mobile iTunes.
I used iTunes (copy URL) way and stuck with "Cannot connect to iTunes". It returned irregular app id!
So for me the answer is to check app id in iTunesConnect or here: http://itunes.apple.com/linkmaker/

How To Check Installed Application On iPhone Device

I am developing an application in which I need to find the apps - such as Skype, Facebook - which are already installed on the iPhone device.
I need to check it Objective-C. Please give me a code snippet if possible; otherwise a link to the solution.
If it not possible then tell me another way to check installed application on iPhone device.
Thanks in advance.
If the app you're checking for has a URI scheme registered, you can probe for that and assume the app is installed. Have a look at -(BOOL)canOpenURL:(NSURL *)url, try something along the lines of
if ( [[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:#"fb://"]] )
{
NSLog(#"will open facebook urls");
}
However, this does not give the guarantee that the genuine facebook app will respond to fb://
if ([[NSFileManager defaultManager] fileExistsAtPath:#"/Applications/Cydia.app"])