<commit_before># meteor-desktop-system-notifications
A plugin for [meteor-desktop](https://www.npmjs.com/package/meteor-desktop) that enabled native system notifications/toasts and icon badges

On the Meteor side you can do the following:

- To set a badge on the app's icon
```
Desktop.send('systemNotifications', 'setBadge', unreadCount);
```

- To show a system notification
```
Desktop.send('systemNotifications', 'notify', {
    title: 'Title',
    text: 'Text',
    icon: 'Icon Url',
    data: {
        someVar: 'someValue',
    },
});
```

- To handle click on a notification
```
Desktop.on('systemNotifications', 'notificationClicked', (sender, data) => {
    //handle click
    //data is the data object you passed to notify
});
```

Lots more to do
<commit_msg>readme update<commit_after># meteor-desktop-system-notifications
 
<sup>CircleCI</sup> [![CircleCI](https://circleci.com/gh/tzapu/meteor-desktop-system-notifications.svg?style=svg)](https://circleci.com/gh/tzapu/meteor-desktop-system-notifications)

---
A plugin for [meteor-desktop](https://www.npmjs.com/package/meteor-desktop) that enabled native system notifications/toasts and icon badges.

### Usage

In your `.desktop/settings.json` add this package to your plugins list:
```json
{
    "meteor-desktop-system-notifications": {
        "version": "0.0.2"
    },
}
```

On the Meteor side you can do the following:

- To set a badge on the app's icon
```
Desktop.send('systemNotifications', 'setBadge', unreadCount);
```

- To show a system notification
```
Desktop.send('systemNotifications', 'notify', {
    title: 'Title',
    text: 'Text',
    icon: 'Icon Url',
    data: {
        someVar: 'someValue',
    },
});
```

- To handle click on a notification
```
Desktop.on('systemNotifications', 'notificationClicked', (sender, data) => {
    //handle click
    //data is the data object you passed to notify
});
```

### Changelog
- 0.0.2
    - app now gets focus when clicking a notification in windows 10
- 0.0.1
    - intial release

Lots more to do

{'fraction_non_alphanumeric': 0.147073290703394, 'fraction_numerical': 0.0054107230693556324, 'mean_word_length': 3.7634660421545667, 'pattern_counts': {'":': 2, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 4, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1233192', 'n_tokens_mistral': 696, 'n_tokens_neox': 635, 'n_words': 186}