react-native-gcm-android icon indicating copy to clipboard operation
react-native-gcm-android copied to clipboard

smallIcon support

Open cpsiaki opened this issue 9 years ago • 1 comments

I'm reading documentation for system-notification and they seem to have features for lights (led indicator) and smallIcon. Do you have these features passing through to system-notificication in launchNotification?

cpsiaki avatar Jan 19 '16 13:01 cpsiaki

We create notification by using react-native-system-notification module. You can do it like below

if (GcmAndroid.launchNotification) {
  var notification = GcmAndroid.launchNotification;
  var info = JSON.parse(notification.info);
  Notification.create({
    subject: info.subject,
    message: info.message,
    smallIcon: 'ic_alert',
  });
  GcmAndroid.stopService();
} else {
  ...

oney avatar Jan 19 '16 13:01 oney