App Notifications

Problem: When using the built in commands, sendNotification and sendBroadcastNotification, the OpenHab app doesn’t give an Android Notification. Instead, the notification is only viewable with in the OpenHab app.

Expected Result: When the notification is received by the OpenHab app, an Android notification should be displayed.

Reason: Requires only one app be downloaded on the client end and does not require any additional setup for bindings.

Maybe your phone prohibits this. Please check your app settings.

Which phone, os etc?

What does the “push notification status” in the about menu say?

And that was it. I downloaded the FOSS version from F-Droid. Still a weird behavior. All of my other F-Droid apps work just fine with notifications. Thanks for the replies.

Solved

Battery efficient notifications in real time aren’t really possible without FCM (closed source Google lib). Maybe there are ways, but I don’t know them :slight_smile:

Im not sure, perhaps looking at the code of apps on fdroid might lead to a solution (frost for facebook, qksms). Or maybe using FCM and listing the anti-feature.

Additionally, I noticed that alarms, call state, battery, and charging status can be sent from the official app. Will device location be an option soon?

FCM is a closed source library which cannot be included in an app on F-Droid.

qksms is a SMS app, so it doesn’t receive push messages over internet. Does frost display a persistent notification while running in background?

Kind of https://github.com/openhab/openhab-android/issues/343. There was a WIP PR once, but it didn’t get merged. It might be easier to implement it now, though.