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

[question]: If you turn off notifications at startup, a dialog called "Open Setting" will now appear. #1318

Closed
1 task done
ynmain opened this issue Sep 21, 2023 · 6 comments

Comments

@ynmain
Copy link

ynmain commented Sep 21, 2023

How can we help?

If you turn off push notifications at startup, a dialog will appear. Is it possible to avoid this by setting something?

SDK version is latest.

IMG_1782

Code of Conduct

  • I agree to follow this project's Code of Conduct
@emawby
Copy link
Contributor

emawby commented Sep 22, 2023

@ynmain Can you share your code you are using to prompt for push? By turn off do you mean call optOut or reject push permissions?

@ynmain
Copy link
Author

ynmain commented Sep 23, 2023

Thank you for your reply. The code is below

func setupOneSignal(launchOptions: [UIApplication.LaunchOptionsKey: Any]?) {
        // Remove this method to stop OneSignal Debugging
        // OneSignal.setLogLevel(.LL_VERBOSE, visualLevel: .LL_NONE)
        // OneSignal initialization
        OneSignal.initialize("xxxxxxxx", withLaunchOptions: launchOptions)
          // requestPermission will show the native iOS notification permission prompt.
          // We recommend removing the following code and instead using an In-App Message to prompt for notification permission
        OneSignal.Notifications.requestPermission({ accepted in
            print("User accepted notifications: \(accepted)")
        }, fallbackToSettings: true)
    }

After updating the One signal SDK for the first time in a while,
I'm having trouble with dialogs appearing on their own.

@ynmain
Copy link
Author

ynmain commented Sep 25, 2023

This is the cause

fallbackToSettings: true

This is a very disappointing feature and should be removed immediately.
I pasted the official document as is.
This is a feature that no one wants.

@ynmain ynmain closed this as completed Sep 25, 2023
@ynmain
Copy link
Author

ynmain commented Sep 25, 2023

Moreover, it is a very disappointing SDK that the official cannot answer immediately.

I will be removing this SDK in the near future.

@sagararora
Copy link

Any solution for this

@apcxiii
Copy link

apcxiii commented Jan 23, 2025

hello @ynmain, Do you receive any response about that issue?

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

No branches or pull requests

4 participants