Closed uzman closed 12 years ago
There's no app store on the simulator - try on an actual iDevice.
Ah, sorry, I didn't see that you'd said it opens the app store.
What version is your app on currently? The link may not work if the app is on version 1.0 as there is no release notes page.
the version is 2.2.3 on the store. i made my app version to 1.0. i test it on the actual device.
It sounds like it should be working. Can you tell me the exact URL it's trying to open (including app ID) and I will investigate.
appStoreID= 353599677 url : itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftwareUpdate?id=353599677
I just tried opening that link on my iPhone running iOS 5.1.1 and it worked fine.
What iOS version are you running?
Are you logged into the App Store on your device with an iTunes sandbox user instead of your normal Apple ID by any chance? That sometimes causes the App Store to behave strangely.
iOS 5.1.1 (9B206) i logged in normal AppleID.
is there any config/plist file that i must fill?
here is the what i did:
imported iversion.h file to appdelegate. put initialize method.
+ (void)initialize
{
[iVersion sharedInstance].appStoreID=353599677;
[iVersion sharedInstance].appStoreCountry=@"tr";
}
live app version is 2.2.3 now on the appstore. thats why i made the Version:1 Build:1 in info.plist file. i deploy the app from xcode to my iPad. when the app starts it show the uialert, then i tap to Download button, it goes to - (NSURL *)updateURL method. NSLog: itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftwareUpdate?id=353599677
it opens the AppStore, then it gives the message: "Cannot connect to iTunes Store"
(my project is non-ARC)
Since your app is available worldwide and is already in the store, you don't need to set any properties on iVersion in your initialize method, it will get everything it needs automatically from the bundle ID in your info.plist.
There's no reason why it shouldn't be working though. I opened that URL directly on my phone just by tapping the link from github in Safari and it worked correctly, so the problem is not inside iVersion.
Try using the following code. It should fix the problem, although I'm still not sure why you're having the problem in the first place:
+ (void)initialize
{
[iVersion sharedInstance].updateURL=[NSURL URLWithString:@"itms-apps://itunes.apple.com/app/id353599677"];
}
i think my AppStore app on iPad is problem. whenever i open the AppStore it says the same error message. its very interesting.
sorry for disturbing. it can be closed.
im not sure but there is something about region. i logged out from appstore app. then re-login. i changed the iVersioniOSAppStoreURLFormat value to: static NSString *const iVersioniOSAppStoreURLFormat = @"itms-apps://itunes.apple.com/app/%u";
now it says: The item youve requested is not currently available in the Turkish Store. (my appstore is adjusted to Turkish store)
Is your app supposed to be available in the turkish store?
i re-checked the itunesconnect. app is available in all countries.
i think my AppStore app is broken down.
I get the same error if I change the store in iTunes on my MacBook and then try opening this URL in desktop Safari:
http://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftwareUpdate?id=353599677
(This is the same URL that iVersion uses but with itms-apps: replaced with http: so it works on the desktop).
I think the problem is that your app isn't available in Turkey. Not sure why that would be.
no, its available in all countries. i changed the store to USA in iTunes on my macbook too yesterday. then everything messed up. im not sure why it happened. (my itunes account is from usa. but i use it on turkish appstore.)
thanks. iversion is great tool.
hi.
when i hit the Download button, it opens the AppStore but it says "Cannot connect to iTunes Store".
i also set the appStoreID, appStoreCountry
i tried the url on browser, but it failed itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftwareUpdate?id=APP_ID