liamcottle / rustplus.js

Unofficial NodeJS library for controlling Smart Switches in the PC game Rust
224 stars 46 forks source link

Code Examples For Smart Alarms? #62

Closed GreanDev closed 8 months ago

GreanDev commented 8 months ago

Are there any code examples for how to process smart alarms?

running getInfo on the entityId of a smartAlarm doesn't return the message, And its not shown in the FCM notification either, Am I missing something?

liamcottle commented 8 months ago

You'll need to manage your own FCM notification listener to get the custom smart alarm messages.

Here's some relevant info about smart alarm notifications: https://github.com/liamcottle/rustplus.js/issues/17#issuecomment-796466975