How to trigger firebase to ask for grant permission in framework7 vue

I have been using cordova-plugin-firebasex to receive notification in previous f7V3 core project. However, when migrate to f7v5 vue it does not trigger any permission for iOS.

Below is the image of the function in app.js

onDeviceReadyInitFirebase(){
            const self = this;
            if(self.$device.cordova) {
                var appRootURL = window.location.href.replace("index.html",'');
                window.onerror = function(errorMsg, url, line, col, error) {
                    var logMessage = errorMsg;
                    var stackTrace = null;

                    var sendError = function(){
                        FirebasePlugin.logError(logMessage, stackTrace, function(){
                            log("Sent JS exception trace");
                        },function(error){
                            logError("Failed to send JS exception trace", error);
                        });
                    };

                    logMessage += ': url='+url.replace(appRootURL, '')+'; line='+line+'; col='+col;

                    if(typeof error === 'object'){
                        StackTrace.fromError(error).then(function(trace){
                            stackTrace = trace;
                            sendError()
                        });
                    }else{
                        sendError();
                    }
                };

                FirebasePlugin.onMessageReceived(function(message) {
                    try{
                        // console.log("onMessageReceived");
                        // console.dir(message);
                        if(message.messageType === "notification"){
                            self.handleNotificationMessage(message);
                        }else{
                            self.handleDataMessage(message);
                        }
                    }catch(e){
                        self.logError("Exception in onMessageReceived callback: "+e.message);
                    }

                }, function(error) {
                    self.logError("Failed receiving FirebasePlugin message", error);
                });

                helper.checkNotificationPermission(false); // Check permission then get token
                helper.clearAllNotification();
            }
        },

checkNotificationPermission: function(requested){
    FirebasePlugin.hasPermission(function(hasPermission){
        if(hasPermission){
            // Granted
            helper.getToken();
        }else if(!requested){
            // Request permission
            FirebasePlugin.grantPermission(this.checkNotificationPermission.bind(this, true));
        }else{
            // Denied
            this.$f7.dialog.alert("Notifications won't be shown as permission is denied");
        }
    });
},

I’m having the same problem, managed to solve?