Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

Android "Back" buttons application closes

SA-45103

Summary



When using the sales automation mobile application, and user noticed that a "standard" behavior on the android application is missing.

When user presses on the "back" button of any android phone, the application is closing instead of going back to the previous page.

Ideally it should have the same functionality of the arrow used for iOS.

Error Messages



Not Applicable


Steps to Reproduce



Press on Android back button in mobile application.

Root Cause



Behavior is working as expected.

Resolution



Here’s the explanation for the reported behavior:

In the Hybrid Container(HC) aka Pega Mobile Client, the default behavior of Android “Back” button is not applied, as the content (PRPC app) displayed there is web based and not the same in native applications.

That’s the reason mobile app is closed once “Back” is pressed.

On iOS there’s no “Back” button provided by OS, so what client see is action triggered probably by PRPC engine.

Nevertheless, HC provides JavaScript API to handle “Back” button actions on Android, do check the link:
https://pdn.pega.com/sites/pdn.pega.com/files/mobileclient/7301/api/client_api/book_container_api_back_action.html

As stated in URL, BackAction “represents an object that enables the support for hardware buttons on Android devices.”

One can check examples provided in documentation to implement desired behavior.

Published March 20, 2018 - Updated December 2, 2021

Was this useful?

0% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us