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.

Troubleshooting an offline-enabled mobile application to verify its network status

Troubleshooting | May 20, 2020 | 02:38

Troubleshooting an offline-enabled mobile application to verify its network status

In this Global Client Support (GCS) video created by Elisha Tanikonda, you will learn about an API that you can run on the developer toolbar console to verify the network status when troubleshooting offline-enabled mobile applications.

In this scenario you have offline and online functionality in your mobile application; however, online functionality can only be executed when the mobile device is connected to the server.

When your application is not connected to the server, you can display an appropriate error message to the user.

The issue arises when the users do not see the expected error message on their mobile screens.

To resolve this, connect your device and open your browser’s Developer console, and then execute the following command:

window.pega.offline.NetworkStatus.isDataNetworkAvailable()

The API returns true when your device is connected to the server.

You can use this API in your application logic and accordingly display the message to the user. You can also use the API to debug when needed.

Refer to the following documents to learn more about offline-enabled mobile applications.

Troubleshoot offline-enabled applications in a browser

Working with offline-enabled mobile apps

Support Guide: Tracing Offline Mobile Applications

For queries related to the topic covered in this video, post a question in the Pega Collaboration Center.

How to troubleshoot an offline-enabled mobile application to verify its network status
Share this page Share via x Share via LinkedIn Copying...

About this Series

Troubleshooting videos walk users through common problems, provide step-by-step solutions and offer tips for effective troubleshooting. They can help provide users seeking assistance and insights into resolving technical issues.

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