Changes to cloud notification registration
Hi, we are implementing supporting multiple openHABs in the iOS client right now. Part of this change will require the addition of a extra payload value to the FCM notification message, registrationId (or something similar). This ID would also be returned when calling the cloud registration endpoint, right now it just returns the text Updated.
We plan on using this id to track which openHAB the notification was sent from. My question here is:
- Will this break anything right now in the Android app (new payload key and returning the ID instead of
Updated) - Is this something the Android app would possibly use as well?
Thanks!
@mueller-ma bump ;-)
- When the new key is optional it shouldn't break the app.
- Right now notifications are only supported for the main server in the app. Support for other servers might be added.
Thanks, i'll probably add this soon, maybe today, i'll let you know in case it's helpful down the road at some point (and i'll close this issue as well).
This change is live, the FCM registration response now returns {"userId":"..."}, this is also included in the payload of notifications.