We are currently lacking support for a "non-hacky" solution to ping native modules / hyerloop modules about global app delegates. Example use-cases:
- Push notification delegates
- Background service delegates
- URL opening delegates
- Lifecycle delegates
We could either achieve this by sending notifications using the NSNotificationCenter or by writing a delegate that is called by our core and implemented by other modules that want to use it. Both solutions require a core-SDK change, rather than CLI/Hyperloop changes. I would prefer the latter solution, since it's more transparent clear to the developer and easier to extend.
Before implementing anything of this, we should scope the impact on the current SDK and the required delegates to be exposed.