File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -1457,8 +1457,14 @@ else if (!url.startsWith("http:") && !url.startsWith("https:") && url.matches("^
1457
1457
LOG .d (LOG_TAG , "execute deeplink [" + url + "]" );
1458
1458
try {
1459
1459
cordova .getActivity ().startActivity (new Intent (Intent .ACTION_VIEW , Uri .parse (url )));
1460
+ JSONObject obj = new JSONObject ();
1461
+ obj .put ("type" , "customscheme" );
1462
+ obj .put ("url" , url );
1463
+ sendUpdate (obj , true );
1460
1464
} catch (ActivityNotFoundException e ) {
1461
1465
LOG .e (LOG_TAG , "not installed deeplink app [" + url + "] : " + e .toString ());
1466
+ } catch (JSONException ex ) {
1467
+ LOG .e (LOG_TAG , "Custom Scheme URI passed in has caused a JSON error." );
1462
1468
}
1463
1469
override = true ;
1464
1470
break ;
@@ -1468,7 +1474,7 @@ else if (!url.startsWith("http:") && !url.startsWith("https:") && url.matches("^
1468
1474
LOG .e (LOG_TAG , "not allowed this scheme [" + url + "]" );
1469
1475
}
1470
1476
} catch (NullPointerException e ) {
1471
- LOG .e (LOG_TAG , "null exception ?! : " + e .toString ());
1477
+ LOG .e (LOG_TAG , "scheme is null ?! : " + e .toString ());
1472
1478
}
1473
1479
} else {
1474
1480
LOG .e (LOG_TAG , "no allowedSchemes" );
You can’t perform that action at this time.
0 commit comments