swift-sdk icon indicating copy to clipboard operation
swift-sdk copied to clipboard

Take into consideration not determined status into checking notifications access status

Open piotrtorczynski opened this issue 1 year ago • 0 comments

✏️ Description

let config = IterableConfig()
config.autoPushRegistration = false
IterableAPI.initialize(apiKey: apiKey, launchOptions: launchOptions, config: config)

If you take into consideration that the user has autoPushRegistration set to false, the SDK will return notificationsEnabled set to true due to this bug. If autoPushRegistration is set to false, the user often has UNAuthorizationStatus set to .notDetermined.

This change fixes this issue so that by default SDK should return the proper value

piotrtorczynski avatar Sep 17 '24 08:09 piotrtorczynski