Skip to content
This repository was archived by the owner on Apr 4, 2023. It is now read-only.

Commit 5e685cd

Browse files
FIrebase Messages Error since 5.0.2 #566
1 parent 933f7d6 commit 5e685cd

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@
44
[Firebase Android SDK Changelog](https://firebase.google.com/support/release-notes/android)
55

66

7+
## 5.0.4 (2017, December 8)
8+
9+
### Fixes
10+
- [#566](https://github.com/EddyVerbruggen/nativescript-plugin-firebase/issues/566) FIrebase Messages Error since 5.0.2
11+
12+
713
## 5.0.3 (2017, December 7)
814

915
### New

src/firebase.android.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ const dynamicLinksEnabled = lazy(() => typeof(com.google.android.gms.appinvite)
2727
(() => {
2828
// note that this means we need to require the plugin before the app is loaded
2929
appModule.on(appModule.launchEvent, args => {
30-
org.nativescript.plugins.firebase.FirebasePluginLifecycleCallbacks.registerCallbacks(appModule.android.nativeApp);
30+
if (messagingEnabled()) {
31+
org.nativescript.plugins.firebase.FirebasePluginLifecycleCallbacks.registerCallbacks(appModule.android.nativeApp);
32+
}
3133

3234
const intent = args.android;
3335
const isLaunchIntent = "android.intent.action.VIEW" === intent.getAction();

src/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nativescript-plugin-firebase",
3-
"version": "5.0.3",
3+
"version": "5.0.4",
44
"description": "Fire. Base. Firebase!",
55
"main": "firebase",
66
"typings": "index.d.ts",

0 commit comments

Comments
 (0)