android icon indicating copy to clipboard operation
android copied to clipboard

Allow the F-Droid minimal app to use non-Gapps push-notifications

Open initd0 opened this issue 5 years ago • 13 comments

I understand that (push)notifications and location services do not work on the minimal version. Although im fine with location services not working. Having the HASS app and no notifications is not really that useful at the end of the day.

Can you make push-notifications work for the F-droid version without using google play services, just like Signal app has done? Here is where they have implemented it: https://github.com/signalapp/Signal-Android/commit/1669731329bcc32c84e33035a67a2fc22444c24b

i think many would appreciate a feature like this while using a phone without Gapps, without sacrificing push notifications. There has to be another way. The world shouldn't revolve around google just to get push notifications.

initd0 avatar Apr 04 '21 20:04 initd0

if we are to do something like this it wouldnt just be for the minimal version but for all versions of the app, the app currently does not support websocket connections so someone will need to add support for that first. That may also require HA core changes to go as well too so wouldnt just be a request made here.

dshokouhi avatar Apr 04 '21 20:04 dshokouhi

I have seen that on Element Android someone opened a PR for Unifiedpush . I haven't checked that project too extensively, but it seems like a good fit.

T-bond avatar Apr 06 '21 01:04 T-bond

I would also be interested in seeing a notification option that doesn't use Google services. I don't have any Google stuff installed on my phone and thus I cannot send notifications. Signal and Telegram both have an alternative for this. The framework @T-bond said might also be a good idea. Perhaps it can be integrated on the Core project as an integration you have to setup?

sigfriedseldeslachts avatar May 16 '21 11:05 sigfriedseldeslachts

to expand this issue: there should be a general way to send back data to the android app, not only notifications. This would allow for the app to switch bluetooth or different settings controlled by HA.

This would also allow for a media notification, that provides a nice notification like the webui

newhinton avatar Jul 14 '21 20:07 newhinton

@newhinton some of that is already possible via notification commands, not all features yet but its been building out. Whatever solution we decide to adopt here should be able to handle the existing commands.

dshokouhi avatar Jul 14 '21 21:07 dshokouhi

If websocket support were added, would that allow the Android HA app to have Local Push capabilities like iOS and macOS? The docs mention Google Firebase but do not mention Android at all, and best I can tell the capability is not there yet.

mathmaniac43 avatar Aug 05 '21 13:08 mathmaniac43

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue now has been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jan 08 '22 23:01 stale[bot]

Still not resolved and still wanted by many people including me.

TheLastProject avatar Jan 08 '22 23:01 TheLastProject

I think like @T-bond already said that UnifiedPush would be a good solution. The advantage of a central push service would be that only one connection would need to be open, instead of separate connections for each service (Homeassistant and other services like Element, for example). This reduces Battery and data usage.

Syntoxr avatar Jan 13 '22 10:01 Syntoxr

I know this is closed and the Android companion app now implements non-FCM push but here’s another thumbs up for implementing unified push. Please devs, take a look here: https://unifiedpush.org/ where there is good documentation for including unified push in an app.

I am currently using a small app called ntfy (https://ntfy.sh/) which is capable of both handling my own custom notifications as well as acting as a local broker on android for push notifications for any apps that implement unified push. It is connected all the time, notifications are extremely quick, and it BARELY uses any battery at all. I have it connected to my own ntfy server instance which effectively allows me to manage my own generic alternative to FCM for ntfy itself and anything that implements unified push. At the moment for me that includes element (for matrix). If I could have any android fantasy future, that would also someday soon include Home Assistant and Signal. I know Moxie won’t listen to my pleas, but how about you all?

pjv avatar Nov 21 '22 16:11 pjv

I would also like to see this feature in Home Assistant as my setup is very similar.

OHDMax avatar Dec 03 '22 17:12 OHDMax

See also https://github.com/openhab/openhab-android/issues/3806

PanderMusubi avatar Nov 28 '25 09:11 PanderMusubi

https://github.com/home-assistant/android/issues/3206 is related, not sure that ticket was closed as "not planned".

Persistent connections is fine and dandy, but they are a huge battery drain compared to just having one app (NTFY) listening to notifications and forwarding them to the Companion app for action.

Rudd-O avatar Dec 28 '25 15:12 Rudd-O