OS Back Button Shouldn't Navigate to Login View

2 posts, 0 answers
  1. Patrick
    Patrick avatar
    12 posts
    Member since:
    Sep 2011

    Posted 10 Jul 2013 Link to this post


    I have a mobile application with login functionality (a login view, in addition to other views that should only be visible to logged in users).

    After a user logs in, they are taken to another view, let's call it the main view. Now, at least on android, if I tap the system's back button (the first one on the left here) then I am returned to the login view!

    How can I prevent this from happening? Instead I want the app to be minimized if that button is tapped from the main view. Is this something that is outside the scope of kendo? Perhaps to be handled by phonegap?

  2. Petyo
    Petyo avatar
    2444 posts

    Posted 11 Jul 2013 Link to this post

    Hi Patrick,

    The behavior you observe is by design. Most web sites/applications will behave in the same way if you login and then hit the browser back button. 

    A workaround I may suggest is to hook up to the login view before show event and prevent it from displaying if the user is logged in. However, I am not sure if (or how) the app can be minimized from JavaScript.

    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top