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 the
ANDROID/project_name/res/drawable/folder to set it as a push image. If there is no
drawablefolder, simply create it:
- On the
Sourcetab, open the
WEB_RESOURCES > app > startScreen.jsfile.
- Find the
PushNotification.initfunction and add an
- 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!