universal-tools / UTNotificationsFeedback

7 stars 0 forks source link

Dynamic large icons on local notifications (Android) #120

Open r3va13 opened 4 years ago

r3va13 commented 4 years ago

Hello. Is there a way to in-game customize a notifications large icons? Notification profiles you provide must be set before the app compiles, but i want to give to my users the possibility to use their own images stored on the device. I can provide image crop and convert to png if it necessary, so it's not a problem. Or it'd be helpfull to set at least a web link to this images.

yuriy-universal-ivanov commented 4 years ago

Hi @r3va13 ,

Unfortunately no standard Android notification layouts allow that: they require the image to be in the app's resources, i.e. it has to be prebuilt in the app.

Alternatively, you can define custom notification layouts and do whatever you like in them. I suggest you against it, as it may cause many difficulties with non-vanilla UI shells, which are quite widespread in Android from many device vendors.

But if you're brave enough, take a look at this forum post of mine: https://forum.unity.com/threads/released-utnotifications-professional-cross-platform-push-notifications-and-more.333045/page-19#post-4997015.

r3va13 commented 4 years ago

=( Alright then. Maybe i'll try it. Спасибо, Юрий.