简体   繁体   中英

External link with crosswalk plugin

I'm working on an ionic project with crosswalk plugin (cordova-plugin-crosswalk-webview) version 1.6.1. When building my Android app for production, the external links don't work but work fine in development build on simulator and real device.

I have the following code:

<button class="button icon-left ion-radio-waves button-clear" ng-href="http://www.mywebsite.com" onclick="window.open(this.href, '_blank', 'location=no'); return false;"></button>

I can only imagine that crosswalk plugin is causing an issue here but not 100% sure.

This doesn't answer your question exactly, but be clear that InAppBrowser uses the default Android webview. The crosswalk plugin only applies to the main Cordova app. If you're trying to use crosswalk for external links, you'll need to make your own InAppBrowser-like plugin to leverage crosswalk.

InAppBrowser should still be able to coexist with a Cordova app using crosswalk though, so that won't be causing this error.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM