This is a migrated thread and some comments may be shown as answers.

OS Back Button Shouldn't Navigate to Login View

1 Answer 46 Views
Application
This is a migrated thread and some comments may be shown as answers.
Patrick
Top achievements
Rank 1
Patrick asked on 10 Jul 2013, 07:47 PM
Hello,

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?

Thanks

1 Answer, 1 is accepted

Sort by
0
Petyo
Telerik team
answered on 11 Jul 2013, 08:20 AM
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.

Regards,
Petyo
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Application
Asked by
Patrick
Top achievements
Rank 1
Answers by
Petyo
Telerik team
Share this question
or