forked from jestcastro/cordova-plugin-firebase
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
65 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,18 +3,18 @@ This update was done to test phone authentication in iOS. All other methods have | |
|
||
# cordova-plugin-firebase | ||
This plugin brings push notifications, analytics, event tracking, crash reporting and more from Google Firebase to your Cordova project! | ||
Android and iOS supported (including iOS 10). | ||
Android and iOS supported. | ||
|
||
## Installation | ||
See npm package for versions - https://www.npmjs.com/package/cordova-plugin-firebase | ||
|
||
Install the plugin by adding it your project's config.xml: | ||
``` | ||
<plugin name="cordova-plugin-firebase" spec="0.1.21" /> | ||
<plugin name="cordova-plugin-firebase" spec="0.1.22" /> | ||
``` | ||
or by running: | ||
``` | ||
cordova plugin add [email protected].21 --save | ||
cordova plugin add [email protected].22 --save | ||
``` | ||
Download your Firebase configuration files, GoogleService-Info.plist for ios and google-services.json for android, and place them in the root folder of your cordova project: | ||
|
||
|
@@ -192,6 +192,13 @@ Unsubscribe from a topic: | |
window.FirebasePlugin.unsubscribe("example"); | ||
``` | ||
|
||
### unregister | ||
|
||
Unregister from firebase, used to stop receiving push notifications. Call this when you logout user from your app. : | ||
``` | ||
window.FirebasePlugin.unregister(); | ||
``` | ||
|
||
### logEvent | ||
|
||
Log an event using Analytics: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<color name="primary">#FFFFFF00</color> | ||
<color name="primary_dark">#FF220022</color> | ||
<color name="accent">#FF00FFFF</color> | ||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters