[Cordova][Android] Handling Physical Back Button Events

28 views
Skip to first unread message

Alfeu Lucas Guedes dos Santos

unread,
Sep 1, 2015, 10:43:08 AM9/1/15
to ChocolateChip-UI
Hello everyone!

I noticed that the physical back button on android does not navigate back to articles, at least not in my ChocolateChip-ui + Cordova project.

So I wrote a callback method for Cordova's backbutton event that does the trick. It navigates back to articles, closes opened popups and exits the app when user is in a 'home' article.

Here is how I handled it, in case anybody faces the same issue: http://www.codeproject.com/Tips/1021164/Chocolatechip-UI-Cordova-and-Android-Handling-Phys

Let me know your thoughts on it.

By the way, what a nice framework! Congrats, Sourcebits!
Reply all
Reply to author
Forward
0 new messages