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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Take into consideration not determined status into checking notifications access status #825

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

piotrtorczynski
Copy link

@piotrtorczynski piotrtorczynski commented Sep 17, 2024

✏️ 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

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

Successfully merging this pull request may close these issues.

1 participant