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

iOS $http json Memory Leak

$
0
0

Hi everyone,

I have an issue with the $http service, not only related to ionic.
Everytime I make an Ajax call to a server to retrieve some JSON data. The memory on iOS increase (you can see it with Xcode). At some point, the memory is too high and the app just crash.
Is there a way to avoid this? Without using a cache system?

You can easily reproduce this. Init a new ionic project and make a $http.get() call. (At this uri for example http://fr.openfoodfacts.org/api/v0/produit/3029330003533.json ).

This behavior occur without ionic, it's an angular issue, but I ask here if someone have a solution.
I haven't try to reproduce it on a android device yet

Thanks
Lucas


Viewing all articles
Browse latest Browse all 228595

Trending Articles