FAQ
Why are small Android icons white in the Editor notification settings preview?
Because small notification icons are to be monochrome and Android ignores all non-alpha channels in the icon image, Unity automatically strips all RGB channels. For more information, see external documentation on Anatomy of a notification.
Another way to provide icons is to place them in the \Assets\Plugins\Android\res\drawable-{scaleFactor}
folder which will not be automatically processed. However, icons which contain non alpha channel will not be correctly displayed on Android 5.0 and above.
The notification color can be modified by AndroidNotification.Color property.
Why are notifications not delivered on certain Huawei and Xiaomi phones when my app is closed and not running in the background?
It seems that Huawei (including Honor) and Xiaomi utilize aggressive battery saver techniques which restrict app background activities, unless the app has been whitelisted by the user in device settings. This means that scheduled notifications will not be delivered if the app is closed or not running in the background. Currently, there's no available workaround besides encouraging the user to whitelist your app.
What can I do if notifications with a location trigger don’t work?
Make sure you've added the CoreLocation
framework to your Project. For information on how to do this, see documentation on notification settings.
Alternatively, you can add the CoreLocation
framework manually to the Xcode project, or use the Unity Xcode API. You also need to use the Location Service API to request permission for your app to access location data.