Reputation: 4153
Is there a callback function in Firefox OS before it crashes the whole app? because I want to send a crash report.
Upvotes: 2
Views: 127
Reputation: 2106
No, the linux kernel will send a kill signal to apps when memory pressure occurs. We don't/can't expose this to JavaScript. See this page for info on debugging if your app is running out of memory.
Upvotes: 0