[AC-6473] canOpenURL no longer working
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Open |
Resolution | Unresolved |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | n/a |
Reporter | Lee Debnam |
Assignee | Abir Mukherjee |
Created | 2020-01-21T20:28:45.000+0000 |
Updated | 2020-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");
}
[~ldebna] what platform do you have this issue at?
This is on iOS using titanium 8.2.1
[~ldebna] can you test with
8.3.1.GA
?[~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 on8.3.1.GA
?