Skip to content
This repository has been archived by the owner on Dec 12, 2022. It is now read-only.

PushKit: Delete any pending PushKit pusher #711

Merged
merged 5 commits into from
Sep 3, 2020
Merged

PushKit: Delete any pending PushKit pusher #711

merged 5 commits into from
Sep 3, 2020

Conversation

manuroe
Copy link
Contributor

@manuroe manuroe commented Aug 31, 2020

element-hq/element-ios/issues/3577.

This reverts #646. Game rules have changed. We cannot use/abuse PushKit as before iOS13 SDK. We have to use APNS. So, we can safely clean PushKit pusher.

This mitigates the race condition where element-hq/element-ios#3578 removes the pusher while MXAccount can refresh it in parallel on a MXSession state change. At the end of the refresh, the pusher is restored :/

This works because element-hq/element-ios#3578 does not clear the MXKAccount.hasPusherForPushKitNotifications, which is still true after element-hq/element-ios#3578

element-hq/element-ios/issues/3577.

This reverts #646. Game rules have changed. We cannot use/abuse PushKit as before iOS13 SDK. We have to use APNS. So, we can safely clean PushKit pusher.
@manuroe manuroe requested a review from SBiOSoftWhare August 31, 2020 13:14
@manuroe manuroe marked this pull request as ready for review September 2, 2020 15:02
@manuroe manuroe merged commit d6f3d89 into develop Sep 3, 2020
@manuroe manuroe deleted the riot_3577 branch September 3, 2020 07:51
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants