Skip to main content

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

Related Videos

Troubleshooting when Android devices do not show up in Remote Devices
Video duration: 04:57

In this Global Client Support (GCS) video created by Bala Gangadhar Tilak Cherukuri, you will learn how to troubleshoot when…

How to initiate a data sync while debugging a mobile application
Video duration: 02:01

In this Global Client Support (GCS) video created by Rett Hean, you will learn about a technique you can use to trigger a…

How to determine the Pega Mobile Client version
Video duration: 02:35

In this Global Client Support (GCS) video created by Rett Hean, you will learn a technique to quickly and accurately verify…

Pega 8.4 Update | Mobile
Video duration: 06:38

Steve Bixby, Vice President of Product Development, chats with Drew Piekarski, Director of Mobility and Collaboration, about…

View All Videos

Did you find this content helpful? Yes No
Want to help us improve this content? Suggest Edit

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