ZoneMinder / zmNinja

High performance, cross platform ionic app for Home/Commerical Security Surveillance using ZoneMinder
http://zmninja.zoneminder.com
Other
1.01k stars 268 forks source link

ZMninja Push notifications on samsung galaxy 10 plus stopped working #1138

Open kvacha13 opened 2 days ago

kvacha13 commented 2 days ago

The version of zmNinja you are reporting:

v 1.6.009 (pro version)

The version and OS of ZoneMinder you are using:

Zoneminder is running on ubuntu 22.04, Zoneminder [v1.36.32]

Platform zmNinja is running on

zmNinja is running on Android 12 (samsung galaxy 10 plus)

Did you build the package from source code yourself? Yes

Describe the bug Just recently noticed that it stopped working push notifications on my zmninja (installed on Samsung galaxy note 10, Android 12). I checked the zoneminder server logs and zmninja logs and they are exchanging alarm notifications (see below). I thought it might be the notification problem on my phone, but I checked everything (permission, notifications, battery optimizer, do not disturb mode, background running, clearing cache..et.c) and nothing should be preventing push notifications (for other messaging applications installed on the phone push works ok). To identify the problem, i even installed zmninja desktop version and set it with exactly same settings as in my andnorid zmninja. And on desktop push notification worked OK.

Debug logs

zmninja logs:
ep 27, 2024 01:48:37:547 PM DEBUG EventSever: Real-time event: {"events":[{"RulesObject":{},"MonitorId":"1","Cause":"Forced Web","DetectionJson":[],"EventId":"5239","Name":"Monitor-1"}],"status":"Success","supplementary":"true","event":"alarm","type":""}
Sep 27, 2024 01:48:37:550 PM DEBUG EventSever: received supplementary event information over websockets
Sep 27, 2024 01:48:52:587 PM DEBUG EventSever: Real-time event: {"supplementary":"true","event":"alarm","type":"","events":[{"EventId":"5239","DetectionJson":[],"Name":"Monitor-1","RulesObject":{},"MonitorId":"1","Cause":"Forced Web: "}],"status":"Success"}
Sep 27, 2024 01:48:52:590 PM DEBUG EventSever: received supplementary event information over websockets
Sep 27, 2024 01:49:01:211 PM INFO Login data not changed, not saving
Sep 27, 2024 01:49:32:924 PM INFO file location:file:///data/user/0/com.pliablepixels.zmninja_pro/files/zmNinjaLog.txt
Sep 27, 2024 01:50:14:747 PM INFO ******* app .run device ready
Sep 27, 2024 01:50:14:749 PM INFO Device is ready
Server logs:
9/27/24, 1:48:49 PM GMT+2   zmeventnotification     311667  INF |----> FORK:Monitor-1 (1), eid:5239 Sending event_end notification over FCM
9/27/24, 1:48:49 PM GMT+2   zmeventnotification     311667  INF |----> FORK:Monitor-1 (1), eid:5239 Sending event_end notification for EID:5239 over MQTT
9/27/24, 1:48:49 PM GMT+2   zmeventnotification     311667  INF |----> FORK:Monitor-1 (1), eid:5239 Executing API script command for event_end /var/lib/zmeventnotification/bin/pushapi_pushover.py 5239 1 "Monitor-1" "Forced Web: " event_end "/var/cache/zoneminder/events/1/2024-09-27/5239"
9/27/24, 1:48:49 PM GMT+2   zmc_m1      225685  INF Monitor-1: 379700 - Capturing at 7.43 fps, capturing bandwidth 160788bytes/sec Analysing at 7.43 fps

Screenshots If applicable, add screenshots to help explain your problem.

Additional context Add any other context about the problem here.

connortechnology commented 2 days ago

It stopped working 3 years ago. You will need the new new zmNinja (not -pro) app.

kvacha13 commented 2 days ago

hi @connortechnology , Thank you for the clarification. Followed your suggestion. Uninstalled the old pro one, bought/installed and set that new zmninja on my Android. Unfortunately, everything except push notifications is working (like in old pro application). Any suggestions? ** The "use_fcmv1" in zmeventserver in zoneminder is set to YES. Should I modify any of zonemidner settings?