I want send a notification by OneSignal, I follow all steps in the document but always I show this message 'Apple returned a BadDeviceToken error. Some users are tied to a different environment from your sending environment.' Any idea!!
(Production Certificate) Bundle ID: ***** , Expires: September 15, 2018
(Sandbox Certificate) Bundle ID: ***** , Expires: September 15, 2018
Mismatched User Environment (Sandbox) Apple returned a BadDeviceToken error. Some users are tied to a different environment from your sending environment.
This warning occurred 1 time, last occurring less than 10 seconds ago.
Affected users: 6414cbae-876a-4360-9783-eb51c0cc0e29
Help me to fix this.
If you are running iOS 12, with xCode 10, then you need to go to File -> Workspace Settings...
Change the build System: to Legacy Build System.
Save and build
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With