Why CordovaWebViewClient not working in Cordova 6 anymore

前端 未结 3 2172
北荒
北荒 2020-12-11 08:14

I have written custom webviewclient class to override onPageStarted, onPageFinished etc in cordova 3.7 which was working fine.

In following code is I ha

3条回答
  •  爱一瞬间的悲伤
    2020-12-11 08:37

    Apache cordova removed CordovaWebViewClient inorder to support external webviews like Crosswalk. If you check out the 14 changed files link in the following commit link, you could see CordovaWebViewClient is removed and AndroidWebViewClient is added.

    So i guess you cannot use the same old code work in Cordova 6.0

    You can probably try using org.apache.cordova.engine.SystemWebViewClient instead.

    Infact, the same question is answered here and it was also accepted. So i believe this is the possible solution to the issue. Hope it helps.

提交回复
热议问题