I have implemented push notifications using your Unity plugin. I want to ask how to create custom notification icon.
I've read on https://api.playfab.com/docs/push-for-android that I should post JSON with the icon name, which I have in my Android\res\drawable folder. Should it be in "Assets/Plugins/Android/res/drawable" ? And should I write the icon name with file extension ("icon.jpg")?
I have a "icon.jpg" file in "Assets/Plugins/Android/res/drawable" folder. I tried sending two notifications. First with "Icon": "icon" - this one showed up without a custom icon (with a white square in gray circle). The second had "Icon": "icon.jpg" - this one caused the app to stop working with the following error:
Unable to start receiver com.playfab.unityplugin.GCM.NotificationPublisher: java.lang.IllegalArgumentException: Invalid notification (no valid small icon)... ... at com.playfab.unityplugin.GCM.PlayFabNotificationSender.sendNotificationById(PlayFabNotificationSender.java:73) at com.playfab.unityplugin.GCM.NotificationPublisher.onReceive(NotificationPublisher.java:27) ...