Background app - memory consumption - device comparing to simulator

Former Member
Former Member
I'm using currently CIQ 3 latest beta - so maybe something still can be reviewed?
The issue I'm facing is related to memory. Background process is so tight on memory that I'm really balancing on a line.

As I'm making request through makeWebRequest - I have realized that using new HTTP_RESPONSE_CONTENT_TYPE_TEXT_PLAIN reduces memory footprint. Without additional code it was working on device (5X - latest available beta) and simulator - at least to get the response and try to pass it...

Next problem was that through CIQ_LOG.yml have learned that I'm trying to pass too much data (response is 5000 chars as string - not sure what could be additional footprint over string? Looking into Map View - not for background - as this is not working for background - but for normal app - I see that there is no overhead for that - is that right?) - theoretically I should be able to pass 8kB (is 5000 chars string more than 8kB?)

So I tried to do 'compression' (well - just substitute known keys with short codes) - in simulator I had everything working fine at the end. With device - I'm getting now response error -403 - meaning - no memory available to process request. Could be - because had to write small function for such 'compression'...

That probably means - there is difference between simulated background memory available and real device… Could you guys take a look into that please?
Or better - give me 2-3kB more :D