Exit App in v2 how to do that?

How to exit app in version 2 of framework7?
in version 1 navigator.app.exitApp (); is used to exit app but in v2 its not working
anyone please help

It works in the same way, it is not related to F7. It is a Cordova api

if you work with cordova.phonegap you can use this document.addEventListener (“backbutton”, onBackKeyDown, false);