Closed cheungpat closed 7 years ago
Just noticed we already have deregistering device when user logouts, it's strange that we need to call it manually https://github.com/SkygearIO/skygear-SDK-iOS/blob/ac8532b087a156902e56583aa64a371b02ae2a13/Pod/Classes/SKYContainer.m#L438
@b123400 Interesting observation. I am going to merge the pull request regardless.
A developer is confused which API to call for registering/unregistering device:
registerRemoteNotificationDeviceToken:completionHandler:
registerDeviceWithDeviceToken:completionHandler:
to be consistent with other APIsunregisterDeviceCompletionHandler:
to unregister deviceregisterDeviceCompletionHandler:
unregisterDeviceCompletionHandler:
to unregister deviceunregisterDevice
unregisterDeviceCompletionHandler:
withnil
parameterunregisterDeviceCompletionHandler: