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

Commit bcf645a

Browse files
bump
1 parent 1d474af commit bcf645a

File tree

4 files changed

+10
-11
lines changed

4 files changed

+10
-11
lines changed

demo-ng/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"nativescript-angular": "^6.1.0",
2626
"nativescript-camera": "^4.0.2",
2727
"nativescript-imagepicker": "^6.0.1",
28-
"nativescript-plugin-firebase": "file:../publish/package/nativescript-plugin-firebase-6.6.0.tgz",
28+
"nativescript-plugin-firebase": "file:../publish/package/nativescript-plugin-firebase-6.7.0.tgz",
2929
"nativescript-theme-core": "~1.0.4",
3030
"reflect-metadata": "~0.1.10",
3131
"rxjs": "~6.0.0 || >=6.1.0",
@@ -43,4 +43,4 @@
4343
"nativescript-dev-webpack": "^0.15.1",
4444
"typescript": "~2.7.2"
4545
}
46-
}
46+
}

demo/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
}
1010
},
1111
"dependencies": {
12-
"nativescript-plugin-firebase": "file:../publish/package/nativescript-plugin-firebase-6.6.0.tgz",
12+
"nativescript-plugin-firebase": "file:../publish/package/nativescript-plugin-firebase-6.7.0.tgz",
1313
"nativescript-theme-core": "^1.0.4",
1414
"nativescript-unit-test-runner": "^0.3.4",
1515
"tns-core-modules": "~4.2.0"
@@ -48,4 +48,4 @@
4848
"build.plugin": "cd ../src && npm run build",
4949
"ci.tslint": "npm i && tslint --config '../tslint.json' 'app/**/*.ts' --exclude '**/node_modules/**' --exclude '**/typings/**'"
5050
}
51-
}
51+
}

docs/MESSAGING.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -133,24 +133,23 @@ Based on the publish/subscribe model, FCM topic messaging allows you to send a m
133133

134134
Client apps can subscribe to any existing topic, or they can create a new topic. When a client app subscribes to a new topic name (one that does not already exist for your Firebase project), a new topic of that name is created in FCM and any client can subsequently subscribe to it.
135135

136-
```js
137-
firebase.subscribeToTopic("news");
136+
```typescript
137+
firebase.subscribeToTopic("news").then(() => console.log("Subscribed to topic"));
138138
```
139139

140140
and:
141141

142-
```js
143-
firebase.unsubscribeFromTopic("news");
142+
```typescript
143+
firebase.unsubscribeFromTopic("news").then(() => console.log("Unsubscribed from topic"));
144144
```
145145

146146
### Retrieving the push registration token
147147
If - for some reason - you need to manually retrieve the current push registration token of the device, you can do:
148148

149-
##### TypeScript
150149
```typescript
151150
firebase.getCurrentPushToken().then((token: string) => {
152151
// may be null if not known yet
153-
console.log("Current push token: " + token);
152+
console.log(`Current push token: ${token}`);
154153
});
155154
```
156155

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": "6.6.0",
3+
"version": "6.7.0",
44
"description": "Fire. Base. Firebase!",
55
"main": "firebase",
66
"typings": "index.d.ts",

0 commit comments

Comments
 (0)