Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add all 3 callbacks for activation lifecycle (2 were missing) & update to latest ably-cocoa API #1177

Merged
merged 7 commits into from Sep 7, 2021

Conversation

ben-xD
Copy link
Contributor

@ben-xD ben-xD commented Aug 20, 2021

There are 3 callback events for push devices: activate, deactivate and update failed. 2 were missing.

In the objective-C and Swift code blocks, I also set the delegate manually, because this is the non-legacy API, as per the internal code of Ably-cocoa (not documented anywhere 馃槀). The automatic delegate has the variable name legacyDelegate.

To see the preview, visit https://ably-docs-pr-1177.herokuapp.com/general/push/activate-subscribe/ and go to Handle push notification lifecycle.

@mattheworiordan mattheworiordan temporarily deployed to ably-docs-pr-1177 August 20, 2021 12:14 Inactive
@tbedford tbedford removed their request for review August 20, 2021 13:03
Copy link
Contributor

@marklewin marklewin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some suggestions re: formatting

content/general/push/activate-subscribe.textile Outdated Show resolved Hide resolved
content/general/push/activate-subscribe.textile Outdated Show resolved Hide resolved
content/general/push/activate-subscribe.textile Outdated Show resolved Hide resolved
content/general/push/activate-subscribe.textile Outdated Show resolved Hide resolved
content/general/push/activate-subscribe.textile Outdated Show resolved Hide resolved
content/general/push/activate-subscribe.textile Outdated Show resolved Hide resolved
Co-authored-by: Mark Lewin <mark.lewin@ably.com>
@mattheworiordan mattheworiordan temporarily deployed to ably-docs-pr-1177 August 23, 2021 19:26 Inactive
Co-authored-by: Mark Lewin <mark.lewin@ably.com>
@mattheworiordan mattheworiordan temporarily deployed to ably-docs-pr-1177 August 23, 2021 19:27 Inactive
ben-xD and others added 2 commits August 23, 2021 20:28
Co-authored-by: Mark Lewin <mark.lewin@ably.com>
Co-authored-by: Mark Lewin <mark.lewin@ably.com>
@mattheworiordan mattheworiordan temporarily deployed to ably-docs-pr-1177 August 23, 2021 19:29 Inactive
Co-authored-by: Mark Lewin <mark.lewin@ably.com>
@mattheworiordan mattheworiordan temporarily deployed to ably-docs-pr-1177 August 23, 2021 19:34 Inactive
Co-authored-by: Mark Lewin <mark.lewin@ably.com>
@mattheworiordan mattheworiordan temporarily deployed to ably-docs-pr-1177 August 23, 2021 19:35 Inactive
@ben-xD
Copy link
Contributor Author

ben-xD commented Aug 23, 2021

Thanks @marklewin , I've committed all your suggestions as they make sense.

Copy link
Contributor

@marklewin marklewin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants