I have a Cordova app with the Marketing Cloud cordova plugin (https://github.com/salesforce-marketingcloud/MC-Cordova-Plugin).
Although I had some difficulty to make it work on android (cf What is the minimum version of Cordova required to use the Marketing Cloud Cordova plugin?) I can now register a device and receive push notification from an Android device.
But now I have to make it work on iOS and even though I can see the device being registered on MobilePush. I cannot send notification to it.
The device is shown as "Not Opted In" and the "Opt Out Source" is marked as ServiceFeedback.
I have configured an APNS Certificate for the app.
How can I send notification to iOS ? What is the cause of the Opt Out ?