You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2018/11/28 19:13:33 UTC

[GitHub] boynet opened a new issue #358: customscheme event not fire after call with _system

boynet opened a new issue #358: customscheme event not fire after call with _system
URL: https://github.com/apache/cordova-plugin-inappbrowser/issues/358
 
 
   my use case: allow inappbrowser to have links to whatsapp api like: `whatsapp://send?text=hello`
   so I add into config.xml:
   `<preference name="AllowedSchemes" value="whatsapp" />`
   
   inappbrowser script:
   ```
   this.inAppBrowser = cordova.InAppBrowser.open(url, '_blank');
   this.inAppBrowser.addEventListener('customscheme', onCustomscheme);
   onCustomscheme(event){
           window.open(event.url, "_system");
       }
   ```
   
   the bug is after any calling to `window.open(event.url, "_system");` or `cordova.InAppBrowser.open(event.url, '_system');` the customscheme event no longer firing no matter what.
   
   so the first click on the `whatsapp://send?text=hello` link will fire the customscheme and open whatsapp, after getting back into the app and clicking the link again the customscheme no longer fire.
   
   I checked it with multipile scheme not only whatsapp and all of them acts the same(so even if the customscheme does nothing)

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org