A while ago, I noticed that openHAB notifications didn’t seem to be appearing on my phone any more (I only have the one mobile device linked to myopenhab). I finally got around to doing some testing today, and what I’ve been able to determine is:
notifications from openHAB are being sent to myopenhab: I can see the list of all the notifications which my OH installation has sent by logging in to myopenhab and checking the “notifications” tab.
notifications can also be viewed in the System->Notifications part of the openHAB iOS app
when I send a test message to the device through the “devices” list in myopenhab, it correctly appears as a push notification on the phone
It’s as if each step of the communications (openhab → myopenhab notification; myopenhab → mobile device push notification) works perfectly, but myopenhab has forgotten that it should take notifications received from the openhab installation and forward them as push notifications to the device. I haven’t even logged in to myopenhab directly for a very long time up until today, so I have had no opportunity to manually change any settings in myopenhab. Any suggestions for how I might get notifications to be passed through again?
Strangest thing is, that I get a push when I do test-notifications from myopenhab, but I do not get a push, when I do sendBroadcast within a rule. But the notification appears in the notifications list at myopenhab and on the iOS app.
I tried to delete userdata/uuid and userdata/openhabcloud/secret and restarted afterwards. So I got a new uuid and a new secret generated.
I then used these at myopenhab.org in the openhab settings.
Unfortunately this also did not work. It shows up as online again on myopenhab.org but no changes in push.
Did not help.
I can confirm I have the exact same problem on all iPhones connected to myopenhab.org.
Test notifications from myopenhab works but any from sendNotification and sendBroadcastNotification only show in the notification list within the app and not as push notifications.
Exactly same behavior on my own devices. I realized today after weeks not receiving notifications. Are we the only ones having this issue or is it globally affecting?
It seems very widespread but not universal. So far the only comments to the contrary seem to be “works for me”, but there are no explanations for myopenhab’s failure to push the notifications that arrive in the myopenhab notification list, while being perfectly capable of triggering a push notification with a test message entered directly on myopenhab. I suspect there is actually a fault - perhaps a patchy one or one that depends on certain circumstances - at myopenhab, but until someone with low-level access to that system engages with these reports, I don’t think any progress is likely.
Ok, so i have no idea why this is happening, there’s not any errors in the logs, and its kinda baffling since we know we receive notification requests and record them in the DB, but we also know notifications push to IOS when using the web interface. The one thing i did notice is all of the cases i have tracked down of people not getting notifications looks like they are attached to one specific node process, we use an IP based hash load balancing algorithm, so socket connections get the same server unless its not available. When using the web interface, you are load balanced differently, and to a different node process then what sockets are connected to, which also might explain why the web interface works. This would also explain why its happening to a percentage of users, and not everyone.
I went ahead and restarted this process, i’m hoping that resolves it.
Can people check again? I restarted the rest of node processes assuming there must be a very slow object leak or similar (those processes having been running a very long time) . I can confirm this is working on my phone.