Comment by afavour

2 days ago

> Presumably React Native apps do something to that extent?

Not in the background they don't, no.

> Or, if they don't, whatever optimization they use

They don't have one. There is no optimization they can do to run JS in the background. Push notifications in a React Native app either use native code or rely on declarative payloads sent from the server.