FCMPlugin.getToken() is undefined

When I install apk myself, the token is present. However, when I deploy to the Play Store and install the app from the Play Store, the token does not exist.

The strange thing is that not all devices can not create tokens.

What is the solution?

I will attach the source to generate the token.

getToken(){
FCMPlugin.getToken(
(token)=>{
console.log(“getToken111 : “+token);
console.log(token.length);
if(token.length<100){
//if(token==null||token==undefined||token==””||token==‘undefined’||token==“none”){
console.log("getToken222 : "+token);
setTimeout(this.getToken(),1000);
}else{
if(this.platform.is(“ios”)){
this.getIsfirstIOS(token);
}else if(this.platform.is(“android”)){
this.getIsfirstAND(token);
}else{
this.getIsfirstAND(token);
}
}
},
(err)=>{
console.log("fcm get token error : "+err);
}
);
}

try to install the following versions in the packager.json :

"@ionic-native/fcm": "^4.20.0",
"cordova-plugin-fcm-with-dependecy-updated": "^2.4.0",

"cordova-plugin-fcm-with-dependecy-updated": {}