Closed daveshirman closed 4 months ago
@daveshirman notification_types = -13
means that your iOS bundle id doesn't have the push notification capabilities enabled.
Double check you have done the first part of the "2. iOS Setup" in the OneSignal Flutter setup guide:
Open the .xcworkspace file in Xcode located your project's ios folder. Select the root project > your main app target > Signing & Capabilities. If you do not see Push Notifications enabled, click + Capability and add Push Notifications.
Thanks - this is correct. Weird as this was previously set up fine and I hadn't changed this setting. Cheers.
@daveshirman If you change your bundle id then Apple treats it as a new app, and you will have to enable it for the new id.
What happened?
Trying to call
OneSignal.User.pushSubscription.optIn();
on iOS device is sending this payload through Xcode console logs:Which I am pretty sure should say
"enabled": true
This means I can't register for push notifications on iOS
Note - on Android, it's fine.
Steps to reproduce?
What did you expect to happen?
I expected subscriptions to be enabled on iOS
OneSignal Flutter SDK version
5.2.2
Which platform(s) are affected?
Relevant log output
Code of Conduct