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

Mac not working from background (PM2) #148

Closed
svrooij opened this issue Dec 20, 2016 · 3 comments
Closed

Mac not working from background (PM2) #148

svrooij opened this issue Dec 20, 2016 · 3 comments
Assignees

Comments

@svrooij
Copy link

svrooij commented Dec 20, 2016

I'm trying to send notifications from my mqtt server with my node app node-mqtt-notification which works great (but the way), until I start the program with PM2 (to run in the background and on system reboot).

According to the logs the message I'm sending to my computer gets received, but it won't show any notification. Could you point me in the right direction on how to solve this issue?

  • macOS Sierra
  • Node v7.2.1
@kurisubrooks
Copy link
Collaborator

kurisubrooks commented Dec 20, 2016

I don't think we've ever tested this under pm2.
Are there any errors or debug that are outputted at all if you listen for them?
Unfortunately as it's holiday season, mikael might take a bit longer than usual to respond 👍

@adams-family
Copy link

I experience the same thing. I installed my code using "node-mac" [https://github.com/coreybutler/node-mac] as a lunchd service and if the notification script is invoked from a service then it does not work.

I can post some sample code if you need it.

@mikaelbr
Copy link
Owner

It seems to work fine with me behind pm2? Check out: https://www.youtube.com/watch?v=nj51wuiOrVU

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

No branches or pull requests

4 participants