how to make my phonegap android app crash?

前端 未结 9 1343
萌比男神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 03:52

    Usually a halt in execution, intentional or not, can cause android to think the app has crashed. Try wrapping your code in something like setTimeout(function() { your code }, 60000) to delay execution by a minute.

    Or, try making an ajax request that will time out.

提交回复
热议问题