-
-
Notifications
You must be signed in to change notification settings - Fork 473
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
Adding push notification icons/configs to config.xml crashes app #184
Comments
I had to delete all icon references from config.xml, remove/add android platform and rebuild. To get it app to work again. Now trying to figure out exactly what specifically is breaking it.
What could be causing this? |
Found the issue, the
Should be:
The docs should be updated. |
Resolved by #174 |
I try to follow the #174 instructions but I view a default blank icon: I have this config:
|
@50l3r - make certain your paths to all the files are correct. I had the same issue and my config file had |
My resource-file exists:
|
I followed all the directions for adding the push notification icons to the appropriate folders and the necessary configs. After adding it all, and doing a
cordova run android
the app starts launch and then immediately crashes. When it crashes, the last command prompt never returns - have to<ctrl>-C
out of the batch.Now I am trying to go through my project to find all the configs that were added to remove them and see which one is causing the issue.
The push notification icons I added to all the drawable folders (notification_icon.png) are all color icons - just mini versions (properly sized) of my actual app icon. Could an incorrectly formatted
notification_icon.png
cause something like this?My suspicion is it has to do with the meta-data config.xml edits. Where does
<meta-data android:name="com.google.firebase.messaging.default_notification_icon" android:resource="@drawable/notification_icon" />
get edited/copied to? I have looked in the/platforms/android/app/src/main/AndroidManifest.xml
file and its not in there. I removed it from the main config.xml file but its still crashing.The text was updated successfully, but these errors were encountered: