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

fix(push-notifications): properly get the configured icon from manifest #1118

Merged
merged 3 commits into from
Aug 26, 2022

Conversation

Koenic
Copy link
Contributor

@Koenic Koenic commented Aug 8, 2022

When using the option to display the notification locally on android when the application is in the foreground applicationInfo.metaData would always be null. This results in it using the wrong icon.

To be honest I'm not familiar enough to know why it fails to retrieve the metaData here. However after some googling the below solution seems to work in my case.

Copy link
Member

@jcesarmobile jcesarmobile left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch, thanks!

@jcesarmobile jcesarmobile changed the title fix(Pushnotification): android local notification always uses the ic_dialog_info icon fix(push-notifications): properly get the configured icon from manifest Aug 26, 2022
@jcesarmobile jcesarmobile merged commit 20e87d3 into ionic-team:main Aug 26, 2022
mpkasp added a commit to mpkasp/capacitor-plugins that referenced this pull request Aug 29, 2022
* chore: Switch back to independent version (ionic-team#1129)

* chore: enable nightly releases (ionic-team#1130)

* fix(google-maps): Check for WKScrollView and WKChildScrollView (ionic-team#1109)

* feat(camera): Add support for iOS limited photo library mode (ionic-team#1125)

* chore(camera): remove listener methods (ionic-team#1136)

* chore(ci): Unpin @actions/core version (ionic-team#1141)

* fix(filesystem): make iOS return proper url on readdir (ionic-team#1142)

* chore(release): publish [skip ci]

 - @capacitor/camera@4.1.0
 - @capacitor/filesystem@4.1.0
 - @capacitor/google-maps@4.1.0

* fix(push-notifications): properly get the configured icon from manifest (ionic-team#1118)


Co-authored-by: jcesarmobile <jcesarmobile@gmail.com>

Co-authored-by: jcesarmobile <jcesarmobile@gmail.com>
Co-authored-by: Mike Summerfeldt <20338451+IT-MikeS@users.noreply.github.com>
Co-authored-by: Joey Pender <joey@ionic.io>
Co-authored-by: Github Workflow (on behalf of IT-MikeS) <users.noreply.github.com>
Co-authored-by: Koen <koen.cas@gmail.com>
hmaretic24 pushed a commit to hmaretic24/capacitor-plugins that referenced this pull request Jan 20, 2023
…st (ionic-team#1118)


Co-authored-by: jcesarmobile <jcesarmobile@gmail.com>
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.

None yet

2 participants