Read and persist state
returned in LocalDevice
/ DeviceDetails
#697
Labels
bug
Something isn't working. It's clear that this does need to be fixed.
In trying to make sure behaviour is correct in push notifications, I noticed that the
DeviceDetails.Push.state
is always null on Android and iOS. A user can get the LocalDevice by callingAblyRealtime#device
, to get back LocalDevice, which extends from DeviceDetails, which containsDeviceDetails.Push
. Unfortunately,DeviceDetails.Push.state
is always nil.It looks like it was never implemented? This value is not null when using the http api/ dashboard, its just the fact that ably-cocoa and ably-java doesn’t ever use it. This value is definitely returned to SDKs which call POST /push/deviceRegistrations. However, it is also returned by other HTTP requests, e.g. PUT rest.ably.io/push/deviceRegistrations/.
In ably-java, this is called in
ActivationStateMachine.java
, atWaitingForPushDeviceDetails#transition
.Similar ably-cocoa issue: ably/ably-cocoa#1162
┆Issue is synchronized with this Jira Bug by Unito
The text was updated successfully, but these errors were encountered: