IONIC3 firebase error

IONIC3 Firebase error


I’m developing a mobile app using IONIC3.
It does not have any special features, and it automatically calls the mobile web page when the app is launched.


export class HomePage {

constructor(public navCtrl: NavController, private iab: InAppBrowser, private firebaseNative: Firebase, private platForm: Platform) {

async getToken() {
let pmxtoken;

if ('android') ) {
  pmxtoken = await this.firebaseNative.getToken();

if ('ios') ) {
  pmxtoken = await this.firebaseNative.getToken();
  await this.firebaseNative.grantPermission();
return this.openWebPagePMX(pmxtoken);


openWebPagePMX(pmxtoken) {
const options: InAppBrowserOptions = {
zoom: ‘no’,
location: ‘no’
this.iab.create('’+pmxtoken, ‘_blank’, options);


I have run Visual studio code using ‘Run Android on device’ using debug and I have seen the following error message.

Angular is running in the development mode. Call enableProdMode() to enable the production mode.
Ionic Native: tried calling Firebase.getToken, but the Firebase plugin is not installed.
Install the Firebase plugin: ‘ionic cordova plugin add cordova-plugin-firebase’
Error: Uncaught (in promise): plugin_not_installed

When I use this.firebaseNative.getToken (), I get an error.

Let me know if you have a solution

Thank you.

Ionic Framework: 3.9.3
Ionic App Scripts: 3.2.3
Angular Core: 5.2.11
Angular Compiler CLI: ^7.2.12
Node: 10.15.3
OS PLatform: macOS

Have you installed Firebase plugin using this command?

Also you need to wait for the platform to be ready before interacting with any plugins.

yes I’m using this command.
$ ionic cordova plugin add cordova-plugin-firebase

I do not understand well.
This is the second operation in the same way.
The first operation was normal,
I am working again, but it is not working normally.

okay then try this:
1)Delete all the node modules and run the command npm install
2)Then remove the platform and add it again ionic cordova platform rm ios
ionic cordova platform add ios
3) And then again try to run the project.
maybe it works and your issue will be resolved.

I’ve been working on your suggestion.

.then(token => alert(The token is ${token}))
.catch(error => alert(‘Error getting token’+ error));

/// Error getting token => plugin_not_installed ///
The above error message appears. Any other options?
Thank you for your help.

Hi, @wysong

Can you share your package.json and config.xml file over here





The whole project.

Thanks for your help.

You need to generate Reverse_client_Id

Hi, @addwebsolution

won-yeong-ui-MacBookPro:pmx wysong$ cordova plugin list
cordova-plugin-device 2.0.2 “Device”
cordova-plugin-firebase 2.0.5 “Google Firebase Plugin”
cordova-plugin-inappbrowser 3.0.0 “InAppBrowser”
cordova-plugin-ionic-keyboard 2.1.3 “cordova-plugin-ionic-keyboard”
cordova-plugin-ionic-webview 3.1.2 “cordova-plugin-ionic-webview”
cordova-plugin-splashscreen 5.0.2 “Splashscreen”
cordova-plugin-statusbar 2.4.2 “StatusBar”
cordova-plugin-whitelist 1.3.3 “Whitelist”
won-yeong-ui-MacBookPro:pmx wysong$

but Error getting token -> plugin_not_installed


Hi @rahulsharma991
<widget id=“com.dskorea.pmx” version=“0.0.1”

“package_name”: “com.dskorea.pmx”

what is “Reverse_client_Id” ?

Hit that link and watch thus video----

I have same issue, Have you got the solution ?