Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 229897

Ionic 4 iOS,API call fails when app goes to background

$
0
0

Hi, I’m using Angular HttpClient from making http calls in my Ionic 4 iOS app(Android I don’t have any issues). Everything works fine when app is in foreground. But I’m facing an issues when iOS app goes to background.

Ex 1:
User opens a file picker to chose a file and I want to make an API call at that time, then API call fails.

Ex 2:
If user opens Bar-code scanner and I want to make an API call at that time then API call fails.

Every time when app goes to background and we try to make the API call it fails. My code to make http requests is same as the official documentation.


Viewing all articles
Browse latest Browse all 229897

Trending Articles



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