Skip to content

dpa99c/cordova-plugin-firebasex

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1,484 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cordova-plugin-firebasex

The repo now contains a backward-compatible wrapper meta-plugin that installs all cordova-plugin-firebasex modular plugins.


DEPRECATED

As of v20, this original monolithic FirebaseX plugin is deprecated in favour the new modular plugin architecture.


Modular Plugins

You are encouraged to migrate to the new modular plugins for better performance, smaller app size, and more flexible dependency management.

If you wish to use this monolithic version of the plugin, you can still install it as cordova-plugin-firebasex@19 - see the legacy documentation for details on the API and plugin variables of the monolithic plugin. However there will be no further updates or fixes to this monolithic plugin.


Installation

cordova plugin add cordova-plugin-firebasex@latest

This installs all of the above modular plugins and re-exports their APIs under the unified FirebasePlugin global, maintaining backward compatibility with the original monolithic plugin.

Migration to Modular Plugins

See the migration guide for more details on migrating to the new modular plugins and how to manage plugin variables in the new architecture.

API

When using this wrapper, all methods are available on the FirebasePlugin global, maintaining full backward compatibility with the monolithic plugin.

// Same API as before
FirebasePlugin.getToken(function(token) {
    console.log("FCM token: " + token);
});

Plugin variables

This wrapper plugin re-exports all plugin variables as defined for the original monolithic plugin, and passes them through to the modular plugins. This means that all plugin variables defined in your config.xml/package.json for the original monolithic plugin will still be picked up and applied to the relevant modular plugins.

Legacy plugin documentation

For documentation on the API and plugin variables of the monolithic plugin, see the legacy documentation.

About

Cordova plugin for Google Firebase

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • JavaScript 100.0%