Software Archive
Read-only legacy content
17061 Discussions

Issues with Android WebView

Lutze
Beginner
594 Views

I ran into some issues when trying out an app built with the app framework.

  • Interactive SVG with D3.js doesn't appear at all, or appear corrupt on old devices. Got it working on Android 5.1.1.
  • Object Map does not seem to be supported for older devices with Cordova. (Added my own function below).
function Map() {
    var data = {};
    this.set = function(key,value) {
        data[key] = value;
    };
    this.get = function(key) {
        return data[key];
    };
    this.has = function(key){
        return !!data[key];  
    };
    this.del = function(key){
        return delete data[key];
    };
}

 

0 Kudos
4 Replies
PaulF_IntelCorp
Employee
594 Views

This is one of the reasons we provide Crosswalk as an alternative for the Android native webview. Please see these articles:

Choose Crosswalk as your target build, not Android. And use the Debug tab (which runs on top of Crosswalk).

0 Kudos
Lutze
Beginner
594 Views

Thanks for the information Paul.

My current problem with Crosswalk is that some of my plugins fail silently, I guess it's the lesser of two evils at this point.

0 Kudos
Pamela_H_Intel
Moderator
594 Views

Lutze - be sure you are using the correct plugin versions for the CLI version you are using.

0 Kudos
PaulF_IntelCorp
Employee
594 Views

Lutze -- the way we build Crosswalk apps changes dramatically with the release that is coming out today. Please try again with this new release, it should fix most of the plugin issues you're having with the current Crosswalk build system.

0 Kudos
Reply