Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-14929

iOS7: Ti.Platform.openURL does not work properly on iOS7 and iTunes links

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Cannot Reproduce
    • Affects Version/s: None
    • Component/s: iOS
    • Labels:
    • Environment:

      iOS7
      SDK 3.1.2
      MobileWeb

      Description

      Problem description

      In some cases, iOS7 does not properly open the iTunes links using Ti.Platform.openURL. It looks like the device fails to open the link if the country code is not correct. Tested using MobileWeb.

      Steps to reproduce

      Create a MobileWeb app with this code:

      var win = Ti.UI.createWindow({
      	backgroundColor: 'white'
      });
       
      var btn = Ti.UI.createButton({
      	title: "Open"
      });
       
      btn.addEventListener('click', function() {
      	Ti.Platform.openURL('https://itunes.apple.com/us/app/junos-pulse/id381348546');	
      });
       
      win.add(btn);
      win.open();
      

      When clicking the button on Safari on iOS7, the store is not opened. Seems to work fine on my device if I remove the country code.

        Attachments

          Activity

            People

            • Assignee:
              ingo Ingo Muschenetz
              Reporter:
              dcassenti Davide Cassenti
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-17249
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Integration