-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Push#getDevicePushDetails method to make HTTP request #26
Comments
More info here ably/ably-cocoa#1186 |
@ben-xD please refer people from server team who can participate in this discussion |
Lets schedule a discussion on this pls |
@paddybyers, @maratal and I just finished out video call. We won't add any new endpoints, as it is possible to modify existing ones. We should allow devices to enquire about their own device details using the same endpoint. Specifically, realtime should check if the device is looking up its own device details, then it can get: We should also allow clients to to list subscriptions by clientId and list subscriptions by deviceId if the client has authenticated with the clientId or deviceId. I will create an issue in the internal repository for this, and update here when the feature is implemented and released. |
We would need to update the feature spec to document the new API implemented by Marat in ably/ably-cocoa#1186 It's relevant to all devices which can receive push notifications. |
@maratal , we should be prepared that the response to the HTTP request is not a normal device registration details, and that it might contain error information. This error information (and Take a look at this:
|
➤ Automation for Jira commented: The link to the corresponding Jira issue is https://ably.atlassian.net/browse/SDK-2766 |
[EDX-155]: Update API reference blurb
Problem
There is currently no way to know the state from the
DeviceDetails
of a device unless the client has push admin capability. If clients have push admin, they can useGET rest.ably.io/push/deviceRegistrations/<deviceId>
. You can find more information about that endpoint under "Get details from a registered device" at https://docs.ably.io/rest-api/. In SDKs which support receiving push notifications (aka. device activation for push notifications), it should be possible to get more information about the current device from Ably.There are more endpoints that can be used to get this information:
push/deviceRegistrations/<deviceId>
(POST, PUT, PATCH, GET). Some of these do not provide a state field (it is always null), and the ones that do provide thestate
require push admin capability.Solution
We should allow devices to get the full
DeviceDetails
about itself, without push admin.Why? When is this useful?
Knowing the
DeviceDetails
, includingDeviceDetails.push.state
anderror
is useful during development and production is useful.failed
state, they can do something about it on the device.┆Issue is synchronized with this Jira Task by Unito
The text was updated successfully, but these errors were encountered: