defold / extension-push

This is a Defold native extension which provides access to Push Notifications functionality on iOs and Android devices.
https://www.defold.com/extension-push/
MIT License
20 stars 16 forks source link

Local push notification is not created if the application has no icon (DEF-1279) #9

Closed britzl closed 2 years ago

britzl commented 5 years ago

When I tried local push using dmengine.apk and scheduled a notification after a few seconds the phone vibrated, but no notification was shown. Logcat writes:

06-23 14:51:49.443: W/ResourceType(10843): No package identifier when getting value for resource number 0x00000000

If I bundle an app with an app icon it works.

This should at least be documented once the documentation is written for the push module.

Tested on a HTC One M9 (Android 5.0.2) 2015-06-24 14:24:49 (sven.andersson) As stated, this should be added to the documentation. But we should also fix a better feedback/warning to the user, perhaps a warning in the editor/engine that the app is missing an icon.

britzl commented 2 years ago

We have actually added a fallback if icons are missing:

https://github.com/defold/extension-push/blob/master/extension-push/src/java/com/defold/push/Push.java#L279-L293