how to make my phonegap android app crash?

前端 未结 9 1326
萌比男神i
萌比男神i 2021-02-05 03:27

I am developing a crash reporter plugin for phonegap android apps. For the testing purpose, I have to make my application crash & \"Unfortunately, application has stopped\"

9条回答
  •  别那么骄傲
    2021-02-05 04:00

    how I can make my app crash by making exception in javascript level ?

    You cannot handle js errors that causes the "Unfortunately, application has stopped" message, because they don't exist and are not javascript-related but Webview/plugin-related.

    If yous see this kind of message after a js call, then it comes from the web view's javascript implementation, AKA Chrome's one or the plugin's native part. Javascript is sandboxed and should not produce such behaviours.

提交回复
热议问题