Hello,
I have a strange issue that i don’t undestand.
I would like to go on the previous page when user push the android back button. But if user is on ‘/1’ location, i’d like to exit the app.
$ionicPlatform.onHardwareBackButton(function() {
if ($location.$$path=='\1')
ionic.Platform.exitApp();
})
When the value of $location.$$path is \1, the back button go only to the previous page.
Any idea on that issue?
Regards,