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

$http returning NULL on first call after launch (ionic) everytime, but after subsequent http post its ok

$
0
0

@firdausmah wrote:

I'ved put this question on stackoverflow with a bounty

Whenever I launch my app, and click on login on the first few tries, the login will attempt a POST http to the server. However $http always (everytime) returns NULL on first try. sometimes after several few tries still NULL if done fast. But subsequently, its all ok.

I dont get it, why is $http returning NULL initially ??

code to reproduce the problem here:
https://github.com/axilaris/ionic_null_http_problem

Any ideas ? Im using ionic 1.7.14 on device iOS 9.3.1

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 49215

Trending Articles



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