Back button confirmation or disabling

Former Member
Former Member

Hello,

I am writing a simple app and I got the following problem:

Whenever the App is running, I don't want the back button to just close the view.

In my progress delegate, I want the back button to either be blocked or to throw a confirmation message that you really want to exit the view.

I tried it with the suggested solution:

	function onBack() {
		return true;
	}

but it just exits the app.

Does anyone have a solution for this?

Thank you so much and have a great day!