-
-
Notifications
You must be signed in to change notification settings - Fork 468
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FEATURE] Implement non-blocking mechanism for consuming iOS app delegate events #443
Comments
Since only one instance of a delegate method can be registered, this is not an issue specific to this plugin but more generally to how Cordova handles app delegates on iOS. There is no easy way of "disabling" the app delegate class that this plugin registers - without it, the plugin will not work properly. The ideal solution would be an intermediate app delegate class which rebroadcast app delegate events, allowing multiple plugins to register for and receive the same app delegate events. Cordova does not currently have a built-in mechanism for this, however there now exists cordova-plugin-app-event which provides a 3rd party solution for this. If this plugin were adapted to use that plugin's broadcast mechanism instead of directly registering its own app delegate methods, that would theoretically enable other plugins to receive the same app delegate events, but only if they also conform to the same approach and use So it's something that could definitely be added to this plugin but would require other plugins (e.g. in this case Urban Airship) to be updated likewise to use the same mechanism. |
Thank you very much @dpa99c! |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Reopening as stalebot incorrectly closed it |
Hi @dpa99c, |
Hello @dpa99c, |
Feature request
I'm trying to integrate my application with Airship by using https://github.com/urbanairship/urbanairship-cordova
It happens that AppDelegate+FirebasePlugin.m is registering itself as Notifications delegate which produces this plugin to get the notifications instead of the Airship one.
I've been looking around for a way to disable it and couldn't find any in the current implementation. So, this is both a feature request but also, if currently there's a way that I did not see to do the disabling, I'm asking for help to figure it out.
Also, a very big thank you to @dpa99c for the awesome work on this plugin.
The text was updated successfully, but these errors were encountered: