Ionic InAppBrowser on Android doesn't navigate to custom Url Scheme

别等时光非礼了梦想. 提交于 2019-12-04 18:41:44

the support for this was added in latest pr

to use it you will need 2 things:

for example to allow whatsapp custom scheme and twitter

  • add new config.xml preference with the custom schemes you want to support: <preference name="AllowedSchemes" value="whatsapp,twitter" />`
  • add event listeners customscheme: inAppBrowserRef.addEventListener('customscheme', function (event) { //do whatever you want here like: window.open(event.url, "_system"); });
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!