Cordova-plugin-firebasex in IOS

cordova-plugin-firebasex doesn’t work for me on IOS (on android it does).

In IOS, the token is generated correctly and the push is sent successfully, and on the ios device all the notification permissions are activated for the app, but the notification does not arrive.

Any help will be welcome. Thank you.

My curl_exec($ch); return this:

{"multicast_id":7253650373345028979,"success":1,"failure":0,"canonical_ids":0,"results":[{"message_id":"0:1671537299237480%e813e461e813e461"}]}

My config.xml

<preference name="android-targetSdkVersion"   value="31"/>

<plugin name="cordova-plugin-firebasex" spec="^16.0.0" >
        <variable name="IOS_STRIP_DEBUG" value="true" />
        <variable name="FIREBASE_ANALYTICS_COLLECTION_ENABLED" value="false" />
        <variable name="FIREBASE_PERFORMANCE_COLLECTION_ENABLED" value="false" />
        <variable name="FIREBASE_CRASHLYTICS_COLLECTION_ENABLED" value="false" />
        <variable name="SETUP_RECAPTCHA_VERIFICATION" value="true" />
        <variable name="ANDROID_ICON_ACCENT" value="#FF11FF11" />
        <variable name="ANDROID_FIREBASE_PERFORMANCE_MONITORING" value="false" />
        <variable name="FIREBASE_FCM_AUTOINIT_ENABLED" value="false" />
        <variable name="IOS_ENABLE_APPLE_SIGNIN" value="false" />
        <variable name="IOS_USE_PRECOMPILED_FIRESTORE_POD" value="false" />
    </plugin>

My code JS:

function push(){

    FirebasePlugin.getToken(function(fcmToken) {

        console.log(fcmToken);

        document.getElementById("regId").value = fcmToken;

        comprobar_token_fcm();

    }, function(error) {

        console.error(error);

    });

    FirebasePlugin.getId(function(appInstanceId) {

        console.log(appInstanceId);

    }, function(error) {

        console.error(error);

    });

    FirebasePlugin.onTokenRefresh(function(fcmToken) {

        console.log(fcmToken);

        document.getElementById("regId").value = fcmToken;

        comprobar_token_fcm();

    }, function(error) {

        console.error(error);

    });

    FirebasePlugin.onMessageReceived(function(message) {

        console.log("Message type: " + message.messageType);

        if(message.messageType === "notification"){

            console.log("Notification message received");

            if(message.tap){

                console.log("Tapped in " + message.tap);

            }

        }

        console.dir(message);

    }, function(error) {

        console.error(error);

    });

}

document.addEventListener("deviceready", push, false);

My Payload:

$message= array(
	'title'	=> $nombreCole,
	'body' => $body
);

$fields = array(
      'registration_ids' => $registration_ids,
      'notification' => $message
);

This probably isn’t a VoltBuilder issue.

Have you tried remote debugging to see if there are any errors on the console?

You might also check with the maintainer on this. He’s quite responsive.