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.

Related Videos

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

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

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

In this Global Client Support (GCS) video created by Bhuvana Mahalingam, we will be showcasing a technique using an API that…

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

Steve Bixby, Vice President of Product Marketing, chats with Drew Piekarski about what's new for Mobility and Collaboration…

See how easy it is to configure the slide question in Pega Survey in this quick how-to!

Mateusz Pedzierski, Radosław Nowak, and Archana Bajaj cover enhancements to Pega mobile capabilities including changes to…

Steve Bixby and Stephanie Louis discuss the new features of Mobility in Pega Platform 8.2. 

View All Videos
Did you find this content helpful?
Want to help us improve this content? Suggest Edit

Ready to crush complexity?

Experience the benefits of Pega Community when you log in.

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