Browser > Open URL in new window not on iOS?

0 favourites
  • 2 posts
From the Asset Store
This is a single chapter from the Construct Starter Kit Collection and the Student Workbook from the Workshop.
  • 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?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • 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....

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)