Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49184

App resume and HTTP error

$
0
0

@pliablepixels wrote:

Hello there I am facing this situation every once in a while (and more so in Android compared to iOS)

When the app is "resuming" from the background, typically after the phone is locked, every once in a while my first HTTP request fails - returns null.
Subsequent requests work.

My suspicion is that it is something do with network not being 'ready' and happens randomly - but when you resume from the background, there is no deviceReady callback - that only happens when the app first starts.

Has anyone experienced this and if so, whats a good way to avoid this?

thanks

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 49184

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>