Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70612

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 70612

Trending Articles