Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

smallIcon support #31

Open
cpsiaki opened this issue Jan 19, 2016 · 1 comment
Open

smallIcon support #31

cpsiaki opened this issue Jan 19, 2016 · 1 comment

Comments

@cpsiaki
Copy link

cpsiaki commented Jan 19, 2016

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?

@oney
Copy link
Owner

oney commented Jan 19, 2016

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 {
  ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants