Using --prod flag makes OneSignal to stop working

basically I have a project that uses OneSignal, the problem is that when I run the app with the --prod flag, onesignal doesnt recognize my device, but if I use it with --release or --debug all the notifications works and I can see my device on onesignal, any clues?

do you need any information about my system?

So --prod and --release are different flag here.

--prod is for the web build. So if you’re using Ionic and Angular, it will do a prod build of your angular app.

--release/--debug are flag for cordova, if that is what you are using.

What is the exact error? Is there anything being printed to the dev console?