Start a new topic

Custom URL scheme works on iOS but does not on Android

Custom URL scheme works on iOS but does not on Android
1 Comment


Hello! 

I have created HTML Drawable that loads up a page with photos once target image is recognized. Each photo has customurl://domain?parameter=value assigned. I have also tried architectsdk:// and result is the same.  When user taps on a photo on iOS device, custom URL schema is handled and a new page loads up. On Android however nothing happens when user taps on a photo. To test I am handling custom schema properly on Android device I have created a new web page with a link that calls just the same url customurl://domain?parameter=value. I opened this new web page in chrome browser on Android device and tapped on a photo. It worked perfectly and triggered my app and custom url schema was parsed properly. 

May I ask you to advise me why would custom url schema not work properly from HTML Drawable displayed in AR on Android device?  

I have tried these two approaches but not successful: 

  function openMyWindow(myUrl) {

    location.href= myUrl;

  }


  function openMyWindow(myUrl) {

   AR.context.openInBrowser(myUrl);

  }

 

Thank you very much!
Login or Signup to post a comment