webview - app crash on Android 5.0.x -
i'm having issue of application crashing on android versions 5.0.x. no error available, warning:
06-19 11:50:22.900: w/google-breakpad(24934): chrome build fingerprint: 1.4.4 11 5c230f07-455f-4c1f-91eb-9c44019cd813 ### ### ### ### ### ### ### ### ### ### ### ### ### tombstones disabled on jb mr2+ user builds. ### ### ### ### ### ### ### ### ### ### ### ### ### sometimes crashes without clicking anything. version 5.1 , version below 5 work normally. idea might wrong?
found similar issue here xamarin used there.
i had same error in xamarin.android , able solve problem fix. add fragment holds webview:
public override void ondetach() { base.ondetach(); destroywebview(); } public void destroywebview() { var webview = activity.findviewbyid<webview>(resource.id.webview); if(webview != null) { webview.clearhistory(); webview.clearcache(true); webview.loadurl("about:blank"); #pragma warning disable 618, 414 webview.freememory(); #pragma warning restore 618, 414 } }
Comments
Post a Comment