Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-14929] iOS7: Ti.Platform.openURL does not work properly on iOS7 and iTunes links

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionCannot Reproduce
Resolution Date2013-08-23T22:33:09.000+0000
Affected Version/sn/a
Fix Version/s2013 Sprint 18, 2013 Sprint 18 API
ComponentsiOS
Labelsios7
ReporterDavide Cassenti
AssigneeIngo Muschenetz
Created2013-08-21T13:05:12.000+0000
Updated2017-03-31T21:52:25.000+0000

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.

Comments

  1. Ingo Muschenetz 2013-08-21

    [~dcassenti] What happens if you use a different platform besides Mobile Web?
  2. Davide Cassenti 2013-08-22

    Seems to be working if I compile for iOS. Tested with different country codes as well (us, gb and it).
  3. Eric Merriman 2013-08-23

    Verified the following: With Mac 10.8.4 running web server and packaged mobileweb application with the code above, safari opened iTunes store view of junos-pulse. Used Xcode 5, beta 6, iOS 7 beta 6 (11A4449d) Verified on iPad 4 and iPhone 5.
  4. Lee Morris 2017-03-31

    Closing ticket as "Cannot Reproduce".

JSON Source