Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UNNotificationServiceExtension: memory limit?

Tags:

ios

ios10

I'm trying to implement UNNotificationServiceExtension, but my code seems to fail often, simply stating the

Program ended with exit code: 0"

I am trying to use the FMDB Sqlite3 module in the extension and it seems as though I may be running into memory limits inside the extension. Are there any documented limits for memory in these extensions? Are there any strategies to help me take them into account, or am I just going to have to accept that I can't put complex functionality into the extension?

Running it through Instruments shows that it only reaches 3.24MB. And NSExtensionMain is 68% of that, so I don't think I can bring that down by a lot.

like image 326
Alastair Avatar asked Sep 30 '16 21:09

Alastair


1 Answers

The limit as of 05/18/18 is 12MB. I verified this by allocating too much memory and saw a Console message from the kernel stating the process was terminated by violating the hard limit of 12MB.

like image 153
afrederick Avatar answered Oct 16 '22 21:10

afrederick