Skip to content
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

Added API method enableForegroundNotifications() #1056

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

tom-hartz
Copy link

This change adds a new API method which should be invoked during app startup:

window['FirebasePlugin'].enableForegroundNotifications();

If not called, foreground notifications are disabled by default. Standardized the notification behavior across Android and iOS to respect this setting, and only show foreground notifications if the above method has been called.

Also fixed an Android installation issue when project is providing a custom colors.xml (previously the plugin installation failed if this file already exists in the platform folder).

Tested successfully with
cordova-android: 7.1.4
cordova-ios: 4.5.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant