Any identifier to check if application is offline or online in Mobile
I am looking at any OOTB property or when condition that can be used to determine if application is offline or online in Mobile. I have a requirement to show hide some sections and buttons when device is offline.
I tried to use "pzIsOfflineEnabled" property from requester, But it is showing the value as "true" only even if the device is in Online.
I wanted to follow up with a strong recommendation against this behavior. pxRequestor.pzIsPegaServerAvailable really only tells you if the server WAS available on the last attempt to contact it, but is no guarantee that the server WILL be available on the next attempt. Offline was built to work in questionable networks where connection to the server may be lost at any time. This when expression may be okay to user within a screenflow where a use just took an action and is quickly going to take a follow up action. This gives you a smaller time window and a higher guaranteed that the status is accurate. I would not use it in the surrounding Portal sections, as the window since that last exchange with the server could be much longer and lead to the UI lagging well behind the real state of server reachability.
Please keep this in mind and reach out if you need further advice on this