how to make my phonegap android app crash?

前端 未结 9 1319
萌比男神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:48

    You can make your cordova/ phonegap application crash by removing the permissions from the AndroindManifest.xml file but still using them inside the app, these kind of exceptions mostly crash your application.

    please note that (depending on your project structure) modifying the AndroindManifest.xml file itself, it may be regenerated and change back to its correct state so you're gonna need to remove permission lines and then change the Androind.json file in the plugins folder befor build, appropriately to make your changes take effect.

    I tested this process and it definitely works! :D

    hope it helps, mim ;)

提交回复
热议问题