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

[MXKAccountManager] Handle UserNotifications framework API when checking local notifications settings #533

Open
SBiOSoftWhare opened this issue Mar 22, 2019 · 0 comments

Comments

@SBiOSoftWhare
Copy link
Contributor

-[MXKAccountManager isPushAvailable] should now handle iOS 10 UserNotifications framework to check if local notifications are enabled.

The problem is that with the UserNotifications framework the notification settings are available only asynchronously with [UNUserNotificationCenter getNotificationSettingsWithCompletionHandler:] method.

So isPushAvailable should evolve to be asynchronous now.

Note, it could also be great to:

  • have a LocalNotificationService and RemoteNotificationService to decouple complexity
  • avoid handling push notification from MXKAccount.
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant