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

Desktop app, no notifications. Works with ios app. #650

Closed
mfauvain opened this issue Jun 15, 2018 · 12 comments
Closed

Desktop app, no notifications. Works with ios app. #650

mfauvain opened this issue Jun 15, 2018 · 12 comments

Comments

@mfauvain
Copy link

Platform & OS Version
Ubuntu 17.1 Gnome

The version of the app you are reporting:
Desktop app 1.3.004

What is the nature of your issue

No notifications with desktop app. Works perfect with iOS app pointing to same zm server
Any flag should be set at zmeventserver level?


Thanks!
@neillbell
Copy link
Contributor

I've been receiving notifications with the desktop app on Ubuntu 16.04. I didn't have to set any specific flags. To be fair, I am doing all of my stuff on a local LAN. Is yours remote?

Have you looked at your logs to see if the connection to the event server is being attempted? My logs show this at startup:

Jun 15, 2018 12:56:10 PM INFO openHandshake: Websocket open, sending Auth
Jun 15, 2018 12:56:10 PM INFO Inside openHandshake
Jun 15, 2018 12:56:10 PM DEBUG Setting up websocket error handler
Jun 15, 2018 12:56:10 PM DEBUG Removing error handlers for websocket
Jun 15, 2018 12:56:10 PM INFO Initializing Websocket with URL wss://xxx.example.com:9000
Jun 15, 2018 12:56:10 PM INFO Desktop instance, not setting up push. Websockets only, I hope
Jun 15, 2018 12:56:10 PM INFO >>>Setting up push registration

When I get an event, I see something like this:

Jun 15, 2018 01:13:20 PM DEBUG Real-time event: {"type":"","events":[{"MonitorId":"4","Name":"SV3C Cam 1 H264","Cause":"Forced Web ","EventId":"5244"}],"status":"Success","event":"alarm"}

@pliablepixels
Copy link
Member

In addition to what neillbell said above, some more notes:

  1. Desktop notifications doesn't really work like mobile notifications in its current form. It only works when the app is active and running.

  2. Check your debug logs - a good way to debug the desktop version is to press Ctrl+Alt+D - that brings up a debug window - go to console view and look for errors when you save an event server setting or expect a push.

@mfauvain
Copy link
Author

@neillbell Tried both, LAN and remote. no success. Looking at the logs I do see a line in the ios app logs openHandShake : state of push is enabled. I don't see this line in the desktop app.
@pliablepixels ok thx, will try that and see what I can find

@mfauvain
Copy link
Author

also, forgot to mention @pliablepixels : app is running and active. Question though, the notification should appear inside the app, or on desktop (using libnotify or similar)?

@pliablepixels
Copy link
Member

Inside the app - a green bar under the header.
Open the debug window, then go to event server settings and save:

  1. validate response or error
  2. look at eventnotification daemon logs too if it received it

@mfauvain
Copy link
Author

ok, no error but I read this :
Jun 15, 2018 04:01:39 PM >>>Setting up push registration Jun 15, 2018 04:01:39 PM Desktop instance, not setting up push. Websockets only, I hope

@mfauvain
Copy link
Author

moved 'only use websockets' to true and now receiving in-app notifications. thx for the help

@pliablepixels
Copy link
Member

pliablepixels commented Jun 15, 2018

You're welcome, but I don't enable "use web sockets only" - its not strictly necessary for desktop. Glad it worked, but I'm curious why that would be.

@mfauvain
Copy link
Author

don't know either, will try setting it back to false to see if I still receive notifications. It would be great to have notification on desktop using libnotify to have same 'ios' experience. Having said that, great app, extremely useful to me.

@stale
Copy link

stale bot commented Jul 31, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Jul 31, 2018
@stale stale bot closed this as completed Aug 4, 2018
@DennisFaucher
Copy link

So, basically no MacOS notificaitons in the Notification Center? zmNinja-pro is receiving notifications, but the icon doesn't change and there are no Notification Center notifications. Is that as good as it gets or is there a way to receive notifications in the Notification Center? TIA.

@DennisFaucher
Copy link

So, basically no MacOS notificaitons in the Notification Center? zmNinja-pro is receiving notifications, but the icon doesn't change and there are no Notification Center notifications. Is that as good as it gets or is there a way to receive notifications in the Notification Center? TIA.

So, as a workaround, I installed Pushbullet on my Android phone and Noti on my Mac which receives Pushbullet notifications. Android zmNinja > Android Pushbullet > Mac Noti > Mac Notification Center.

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