Development Tip: Custom Icon for Push Notifications
One way to customize your app is to use a custom push notification icon. By the default, the push notification icon is your app icon.
Setting a custom icon for incoming push notifications is available only for Android OS and only for version 3 libraries (jQuery Mobile).
To set a custom push notification image:
- Upload your custom image (for example:
icon.png
) into theANDROID/project_name/res/drawable/
folder to set it as a push image. If there is nodrawable
folder, simply create it:
- On the
Source
tab, open theWEB_RESOURCES > app > startScreen.js
file. - Find the
PushNotification.init
function and add anicon
property with'icon'
value:
- Now your app has a custom push notification icon!
Read more about Appery.io push notifications in our documentation and make sure to check out all of our mobile development tips.
Do you want to build apps fast? Start developing with our trial plan!