i want to create a link my current app so when you click on a button
it open the appstore (on the iPhone) and goes directly to the application.
Can you do that in the basic uinty iphone version?
Application.OpenUrl(“Connecting to the iTunes Store.”)
that doesn’t work
i also copy the weblink from the app in the store in to this but that doesn’t work too
I’m afraid you can only open a URL in iPhone Advanced.
Negative. As of the latest patch, OpenURL is available for both licenses. I don’t know how to link to an app in the app store, but if you figure out how to get that URL, then Application.OpenURL will work for you.
Yup, this is true as of Unity iPhone 1.5.
@lesfundi: make sure you’ve updated to v1.5 and that all works well in the editor, then test again on the device. Also, make sure you’re using the correct URL, like “http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=&mt=8”.
thx, i will give that a try later on.
I use it in about 5 apps, I’m pretty sure it works fine
isn’t it imtp:// or alike instead of http to open the appstore directly?
Try Url with capitals:
Application.OpenURL(“Connecting to the iTunes Store.”)
Works OK for me…
damn i was wrong - doesn’t work , one has to use “http://”
is it possible to use itmp:// or marketplace:// directly or must you use http://
Hey, I’m probably a bit late to the party, here’s how you do it.
- #if UNITY_ANDROID
- Application.OpenURL(“market://details?id=YOUR_ID”);
- #elif UNITY_IPHONE
- Application.OpenURL(“itms-apps://itunes.apple.com/app/idYOUR_ID”);
- #endif
you can use, http://, itms://, market:// or any other valid url.
Otherwise, try to go for plugins.
Has there been some change on this front? I’m trying to create a rate button within my game. As a test, I tried launching the App Store and opening an existing, published application. However, I’ve tried a variety of code variations (as well as app IDs), and I always get an App Store window that displays “ITEM NOT AVAILABLE”. I can get links to work in Xcode and in browsers (so my app ids are definitely correct). But I cannot do it in C# code in Unity. I’m testing on an iPhone 5 with iOS 8. Some examples that I have tried:
Application.OpenURL(“itms-apps://itunes.apple.com/app/idYOUR_ID”);
Application.OpenURL(“itms-apps://itunes.apple.com/us/app/idYOUR_ID”);
Application.OpenURL(“https://itunes.apple.com/us/app/apple-store/idYOUR_ID?mt=8”);
Has anyone got this to work? Surely there is a simple way that I’m missing.
this is just great. save my day.thank man.