openhab-ios icon indicating copy to clipboard operation
openhab-ios copied to clipboard

No badges and no Notifications menu when not using myopenhab.org as remote URL

Open kgoderis opened this issue 3 years ago • 4 comments

  1. Create a myopenhab.org account and install the Cloud Connector on an OH instance
  2. Reconfigure the App to point to myopenhab.org
  3. Make a remote connection so that the UUID gets registered at myopenhab.org
  4. Reconfigure the App to point to the given OH Instance (which is exposing ports 443 and 80 publicly) using a FQDN, change userid/pwd if necessary
  5. Configure Notification in iOS for the App, e.g. enable sounds, badges,... every possible option

Notifications can be sent without problem from OH to the App, however the app does not get badges, and the Notifications menu in the App (since no longer connected to myopenhab.org) has disappeared.

Is this by design?

kgoderis avatar Oct 18 '20 14:10 kgoderis

the app does not get badges

I'll have to check the code, currently afk. Does it work when using myopengab.org?

the Notifications menu in the App (since no longer connected to myopenhab.org) has disappeared

Notifications are loaded from the cloud instance, so you wouldn't get anything anyway.

weakfl avatar Oct 18 '20 15:10 weakfl

the app does not get badges

I'll have to check the code, currently afk. Does it work when using myopengab.org?

Not sure, I only noticed it afterwards, so, if this is a dynamic feature cfr the second point, it might be linked. I have no clue

kgoderis avatar Oct 19 '20 15:10 kgoderis

@weakfl When the device receives a Notification, when it is not badged or tracked, it is impossible to know what has been sent. As a user you only see them once on the lock screen, and then the information is lost. Would it not make sense to log the events in the app, instead of getting them from the cloud?

kgoderis avatar Nov 02 '20 09:11 kgoderis

Would it not make sense to log the events in the app, instead of getting them from the cloud?

The iOS client is only one of many UIs for openHAB, so storing notifications in the cloud makes sense imho.

weakfl avatar Nov 14 '20 11:11 weakfl