Titanium JIRA Archive
Appcelerator Community (AC)

[AC-6473] canOpenURL no longer working

GitHub Issuen/a
TypeBug
Priorityn/a
StatusOpen
ResolutionUnresolved
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsn/a
ReporterLee Debnam
AssigneeAbir Mukherjee
Created2020-01-21T20:28:45.000+0000
Updated2020-02-11T09:01:53.000+0000

Description

I am trying to detect an app I have registered using the URL scheme. If I simple user the open command below it works fine, so I assume the other app I am opening has registered it's URL scheme correctly:
Ti.Platform.openURL("urlscheme:");
However if I try and check it before opening (so I can redirect to the app store if the user hasn't got the other app installed) it always returns negative:
if (Titanium.Platform.canOpenURL("urlscheme:")) {
    	Ti.API.info("can open");
	Ti.Platform.openURL("urlscheme:");
} else {
    	Ti.API.info("can't open");
}

Comments

  1. Rene Pot 2020-01-28

    [~ldebna] what platform do you have this issue at?
  2. Lee Debnam 2020-01-28

    This is on iOS using titanium 8.2.1
  3. Rene Pot 2020-01-28

    [~ldebna] can you test with 8.3.1.GA?
  4. Rene Pot 2020-02-11

    [~ldebna] haven't heard back from you yet. Can you provide the exact urlscheme you want to test instead of the mocked one? Also, do you still have the issue and have you tested on 8.3.1.GA?

JSON Source