Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mismatched User Environment (Sandbox) OneSignal Cordova

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.

like image 596
Tunisipweb Tunisipweb Avatar asked Aug 16 '17 09:08

Tunisipweb Tunisipweb


1 Answers

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

like image 177
Mo Kawsara Avatar answered Oct 31 '22 17:10

Mo Kawsara