Problems with local notifications

Hello.

I’m having some trouble with the local notifications.

  1. Sounds I choose for notification are not played, I’ve tried the audio that’s in the demo project and it works. Is there any rule that must be respected for that sound? Location in folders, size, or more?

  2. I followed all the rules for creating Android icons here: https://docs.coronalabs.com/guide/events/appNotification/index.html#android-setup and here: https://developer.android.com/guide/practices/ui_guidelines/icon_design_status_bar.html . But when I receive the notification I always show the default icon. Is there still something I should know about here?

Do have ALL the correctly sized icons required for local notifications (there are a lot) and are they only white on transparent?

Yes, the design is white and below the alpha channel.

You say that there are many but the guides cite 4, are not that enough?

I noticed that the notification icons had the same name as the app icon.

But with 1/2 of their size. So I created 6 icons like this:

IconNotificationDefault-hdpi 36*36

IconNotificationDefault-ldpi 18*18

IconNotificationDefault-mdpi 24*24

IconNotificationDefault-xhdpi 48*48

IconNotificationDefault-xxhdpi 72*72

IconNotificationDefault-xxxhdpi 96*96

Now it works but I have not tested it on all devices. Can you tell me if they are enough?

That should be fine.  Do test on device(s)

Thank you so much!

What about sound? Is there a particular reason why I still can not get it running?

For sounds yes there are limitations but you will have to research this for the app store(s) you wish to publish on.

Personally, I stick to system sounds.

I understand.

Thank you again for your time :slight_smile:

Do have ALL the correctly sized icons required for local notifications (there are a lot) and are they only white on transparent?

Yes, the design is white and below the alpha channel.

You say that there are many but the guides cite 4, are not that enough?

I noticed that the notification icons had the same name as the app icon.

But with 1/2 of their size. So I created 6 icons like this:

IconNotificationDefault-hdpi 36*36

IconNotificationDefault-ldpi 18*18

IconNotificationDefault-mdpi 24*24

IconNotificationDefault-xhdpi 48*48

IconNotificationDefault-xxhdpi 72*72

IconNotificationDefault-xxxhdpi 96*96

Now it works but I have not tested it on all devices. Can you tell me if they are enough?

That should be fine.  Do test on device(s)

Thank you so much!

What about sound? Is there a particular reason why I still can not get it running?

For sounds yes there are limitations but you will have to research this for the app store(s) you wish to publish on.

Personally, I stick to system sounds.

I understand.

Thank you again for your time :slight_smile: