Browser > Open URL in new window not on iOS?

Get help using Construct 2

Post » Tue Dec 17, 2013 12:52 pm

Hi! I used the Open URL in new window action to open my website from within the app and it works fine on PC but when I try it on iOS devices it seems to do nothing. Is there any workaround for this?
Bl4ckSh33p-Soft - Custom Software and Indie Games
B
58
S
18
G
6
Posts: 756
Reputation: 9,591

Post » Sat Dec 05, 2015 4:56 am

@Bl4ckSh33p, I think I figured this out and got it working. You need to have browser--> Open newURL window --> instead of https:// in your URL, use itms-apps://

Then it opens the iOS app store app directly w/o safari getting involved

Also note that this functionality doesn't work in preview mode...It works after the app is installed on your iPhone/iPad. Hope you will find this information useful.

Although the above approach works, Apple's recommended way of doing this is -
--------------------------------------------------------------------------------------------------------------------
NSString *iTunesLink = @"https://itunes.apple.com/us/app/apple-store/id375380948?mt=8";
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:iTunesLink]];

But I am not sure how to make this kind of code work in Construct2 for iOS. IF ANYONE HAS A BETTER WAY OF DEALING WITH THIS, PLEASE SHARE....
For game development / IT services contact - [email protected]

List of published iOS apps -
https://itunes.apple.com/us/artist/ravi ... d693234511
B
84
S
20
G
3
Posts: 337
Reputation: 7,368


Return to How do I....?

Who is online

Users browsing this forum: John Cutter and 6 guests