What browser engine does Android use for phonegap?

后端 未结 2 1003
余生分开走
余生分开走 2021-01-17 12:25

I\'m trying to implement some CSS animations in a phone gap project. The animations run fine on an iOS device but not on my Android. In fact some things like dashed borders

相关标签:
2条回答
  • 2021-01-17 13:05

    Take care because since version 4.4 (only) Android does use a Chromium based webview (I think before it was simply a webkit-based webview).

    The WebView prior to 4.4 has a bad reputation as far as I've read.

    This is another reason to use the Crosswalk project which has a Cordova plugin and permits to embed a specific version of Chromium, so that all your apps are using the same WebView engine no matter the SDK (a a cost of a big APK)

    0 讨论(0)
  • 2021-01-17 13:24

    PhoneGap uses native browser engines. So in android, it uses WebKit.

    From PhoneGap

    web view used by PhoneGap is the same web view used by the native operating system.On iOS, this is the Objective-C UIWebView class; on Android, this is android.webkit.WebView.Since there are differences in the web view rendering engines between operating systems, make sure that you account for this in your UI

    This tutorial may be helpful for you. It shows how to target for specific browser(means specific render engine).

    Hope this helps!

    0 讨论(0)
提交回复
热议问题