I want to create an app that has the sole purpose of quitting the Waze app.
The app is launched when I get in the car automatically (Bluetooth connect trigger with Activator). The annoyance is that you have to go into the menu and press the power button icon within Waze to make it go into sleep mode. In my opinion they should offer an option to always go into sleep mode if you press 'home', but they don't. So I'd like to create an app that will be launched by the Bluetooth disconnect trigger from Activator and then closes Waze and closes itself. I know how to code that second part, but I've no idea how I can close another running/background application.
I tried killall Waze
or killall com.waze.iphone
without success.
Note: it's for jailbreak only.