iosxcodeunusernotificationcenter

What memory limit for Apple Notifications service extension


I've implemented notifications extension and now try to debug my code, but without any success. I tried several approaches how to handle it, for example stackoverflow question

When I "attach to process ...", I just see "waiting to attach" message on desired process. If I send push notification to invoke my extension, it just crashes

Message from debugger: Terminated due to signal 9

Is it possible that OS just close my extension, because it uses to much memory or it has too big size (~.appex = 20mb), but I can't find guidelines about extension size/number of files, etc.

Any suggestions, help?

Thx in advance


Solution

  • It seems like that there is a memory limit for Notification Service Extension. Someone said it may be 5mb. And someone said that the limit is 5mb in ObjC, or 15mb in Swift.

    Due to the limit, I remove all 3rd party libraries in Notification Service Extension.