Page 1 of 1

Handling low memory warnings

Posted: Wed Feb 11, 2015 12:22 am
by Cody Blue

I am posting this in the hope to get feedback on provisions Appery might have to allow receiving and gracefully handling low memory warnings on device (my interest is iOS at present).

Its probably quite vital for apps developed with Appery and targeted for iOS launch (Apple recommendation on low memory warnings below).

https://developer.apple.com/library/i...


Handling low memory warnings

Posted: Wed Feb 11, 2015 10:13 am
by Maryna Brodina

Hello!

Please clarify where do you get those warnings. If it's in xCode, post some screenshots. Also specify your libraries version.


Handling low memory warnings

Posted: Wed Feb 11, 2015 10:23 am
by Maryna Brodina

I've got the information from iOS developer that those warnings (if these are warnings I think about) caused by 3rd party plugins added in Appery.io project by default http://devcenter.appery.io/documentat... and there is nothing we can do about fixing it. Besides that it's warnings, not errors and app are accepted by Apple with these kind of warnings.


Handling low memory warnings

Posted: Thu Feb 12, 2015 8:08 pm
by Cody Blue

Maryna,

Thanks for the feedback. These are low memory warnings within Xcode. I am not asking for anything to be fixed. Low memory warnings are bound to happen for a variety of reasons including memory scarcity and lots of data/apps on device. Apple expects these warnings to be handled gracefully. You can check Observe low memory warning section in the link I forwarded above.

My question is do you expose these within Appery for suitable responses to be taken?


Handling low memory warnings

Posted: Fri Feb 13, 2015 1:32 pm
by Maryna Brodina

Hello!

Appery.io app itself doesn't create dynamically any additional objects, they could be added by iOS system or plugins. When there are low memory warnings from the system, we clear response cache the way it's done in template which is provided along with with Cordova.


Handling low memory warnings

Posted: Fri Feb 13, 2015 9:43 pm
by Cody Blue

Thanks - fair enough. Can you provide bit more information or documentation or link to this response cache clearance and cordova template you've alluded to here: just so me (and potentially others) here are more aware.


Handling low memory warnings

Posted: Mon Feb 16, 2015 11:58 am
by Evgene Karachevtsev

Hello Cody,

This link should be useful for you:
https://github.com/apache/cordova-ios
This link is about NSURLCache - https://developer.apple.com/library/i...