I'm receiving remote notifications successfully on Android, showing Title, message, and body.
But the icon used for the notification is always an empty white icon !
This is a sample of the notification schema:
What am I missing ?
{
"data": {
"Notification": "{\"Name\":\"Extra json to be parsed by react when clicking the notification\"}",
"title": "You have a new message from X",
"message": "You have a new message from X",
"body": "You have a new message from X"
}
}
I've used below package
"native-base": "^0.5.2",
"react": "16.0.0-alpha.3",
"react-native": "0.43.1",
"react-native-notifications": "^1.1.10",
"react-native-router-flux": "3.38.0",
"react-native-vector-icons": "^4.0.0"
index.android.js
componentDidMount = () => {
this.handleConnectionChange;
NotificationsAndroid.setNotificationOpenedListener((notification) => Actions.forums());
NotificationsAndroid.setRegistrationTokenUpdateListener((deviceToken) => global.deviceID = deviceToken);
NetInfo.isConnected.addEventListener('change', this.handleConnectionChange);
}