Skip to content

Commit dc3fd90

Browse files
committed
chore: release v1
1 parent 2dd3032 commit dc3fd90

File tree

18 files changed

+28
-26
lines changed

18 files changed

+28
-26
lines changed

packages/firebase-admob/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nativescript/firebase-admob",
3-
"version": "1.0.0-alpha.42",
3+
"version": "1.0.0",
44
"description": "NativeScript Firebase - Admob",
55
"main": "index",
66
"typings": "index.d.ts",

packages/firebase-analytics/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nativescript/firebase-analytics",
3-
"version": "1.0.0-alpha.42",
3+
"version": "1.0.0",
44
"description": "NativeScript Firebase - Analytics",
55
"main": "index",
66
"typings": "index.d.ts",

packages/firebase-app-check/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nativescript/firebase-app-check",
3-
"version": "1.0.0-alpha.42",
3+
"version": "1.0.0",
44
"description": "NativeScript Firebase - App Check",
55
"main": "index",
66
"typings": "index.d.ts",

packages/firebase-auth/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nativescript/firebase-auth",
3-
"version": "1.0.0-alpha.42",
3+
"version": "1.0.0",
44
"description": "NativeScript Firebase - Auth",
55
"main": "index",
66
"typings": "index.d.ts",

packages/firebase-core/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@ Ensure `GoogleService-Info.plist` file located in `App_Resources/iOS`.
1616

1717
```ts
1818
import { firebase } from '@nativescript/firebase-core'
19-
const defaultApp = firebase().initializeApp()
19+
const defaultApp = await firebase().initializeApp();
2020
```
2121

2222
### Initialize Secondary App
2323

2424
```ts
2525
import { firebase, FirebaseOptions } from '@nativescript/firebase-core'
2626
const config = new FirebaseOptions()
27-
const secondaryApp = firebase().initializeApp(config, 'SECONDARY_APP')
27+
const secondaryApp = await firebase().initializeApp(config, 'SECONDARY_APP');
2828
```
2929

3030

packages/firebase-core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nativescript/firebase-core",
3-
"version": "1.0.0-alpha.42",
3+
"version": "1.0.0",
44
"description": "NativeScript Firebase - Core",
55
"main": "index",
66
"typings": "index.d.ts",

packages/firebase-crashlytics/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nativescript/firebase-crashlytics",
3-
"version": "1.0.0-alpha.42",
3+
"version": "1.0.0",
44
"description": "NativeScript Firebase - Crashlytics",
55
"main": "index",
66
"typings": "index.d.ts",

packages/firebase-database/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nativescript/firebase-database",
3-
"version": "1.0.0-alpha.42",
3+
"version": "1.0.1",
44
"description": "NativeScript Firebase - Database",
55
"main": "index",
66
"typings": "index.d.ts",

packages/firebase-dynamic-links/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nativescript/firebase-dynamic-links",
3-
"version": "1.0.0-alpha.42",
3+
"version": "1.0.0",
44
"description": "NativeScript Firebase - Dynamic Links",
55
"main": "index",
66
"typings": "index.d.ts",

packages/firebase-firestore/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nativescript/firebase-firestore",
3-
"version": "1.0.0-alpha.42",
3+
"version": "1.0.0",
44
"description": "NativeScript Firebase - Firestore",
55
"main": "index",
66
"typings": "index.d.ts",

packages/firebase-functions/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nativescript/firebase-functions",
3-
"version": "1.0.0-alpha.42",
3+
"version": "1.0.0",
44
"description": "NativeScript Firebase - Functions",
55
"main": "index",
66
"typings": "index.d.ts",

packages/firebase-in-app-messaging/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nativescript/firebase-in-app-messaging",
3-
"version": "1.0.0-alpha.42",
3+
"version": "1.0.0",
44
"description": "NativeScript Firebase - In App Messaging",
55
"main": "index",
66
"typings": "index.d.ts",

packages/firebase-installations/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nativescript/firebase-installations",
3-
"version": "1.0.0-alpha.42",
3+
"version": "1.0.0",
44
"description": "NativeScript Firebase - Installations",
55
"main": "index",
66
"typings": "index.d.ts",

packages/firebase-messaging/README.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ async function requestUserPermission() {
3636

3737
if (enabled) {
3838
console.log('Authorization status:', authStatus);
39+
40+
const didRegister = await firebase().messaging()
41+
.registerDeviceForRemoteMessages();
3942
}
4043
}
4144
```
@@ -70,15 +73,14 @@ Depending on the contents of the message, it's important to understand both how
7073

7174
The device state and message contents determines which handler will be called:
7275

73-
| Foreground | Background | Quit | |
74-
| :-----------------: | :--------: | :-------------------------------------: | --------------------------------------- |
75-
| Notification | onMessage | setBackgroundMessageHandler | setBackgroundMessageHandler |
76-
| Notification + Data | onMessage | setBackgroundMessageHandler | setBackgroundMessageHandler |
77-
| Data | onMessage | setBackgroundMessageHandler (see below) | setBackgroundMessageHandler (see below) |
76+
| Foreground | Background |
77+
| :-----------------: | :--------: |
78+
| Notification | onMessage |
79+
| Notification + Data | onMessage |
80+
| Data | onMessage |
7881

7982
- In cases where the message is data-only and the device is in the background or quit, both Android & iOS treat the message as low priority and will ignore it (i.e. no event will be sent). You can however increase the priority by setting the priority to high (Android) and content-available to true (iOS) properties on the payload.
8083

81-
- On iOS in cases where the message is data-only and the device is in the background or quit, the message will be delayed until the background message handler is registered via setBackgroundMessageHandler, signaling the application's javascript is loaded and ready to run.
8284

8385
To learn more about how to send these options in your message payload, view the Firebase documentation for your [FCM API implementation](https://firebase.google.com/docs/cloud-messaging/concept-options).
8486

@@ -111,7 +113,7 @@ firebase()
111113

112114
### Data-only messages
113115

114-
When an incoming message is "data-only" (contains no notification option), both Android & iOS regard it as low priority and will prevent the application from waking (ignoring the message). To allow data-only messages to trigger the background handler, you must set the "priority" to "high" on Android, and enable the content-available flag on iOS. For example, if using the Node.js [firebase-admin](https://www.npmjs.com/package/firebase-admin) package to send a message:
116+
When an incoming message is "data-only" (contains no notification option), both Android & iOS regard it as low priority and will prevent the application from waking (ignoring the message). To allow data-only messages to trigger , you must set the "priority" to "high" on Android, and enable the content-available flag on iOS. For example, if using the Node.js [firebase-admin](https://www.npmjs.com/package/firebase-admin) package to send a message:
115117

116118
```ts
117119
admin.messaging().sendToDevice(
@@ -132,7 +134,7 @@ admin.messaging().sendToDevice(
132134
);
133135
```
134136

135-
For iOS specific "data-only" messages, the message must include the appropriate APNs headers as well as the content-available flag in order to trigger the background handler. For example, if using the Node.js [firebase-admin](https://www.npmjs.com/package/firebase-admin) package to send a "data-only" message to an iOS device:
137+
For iOS specific "data-only" messages, the message must include the appropriate APNs headers as well as the content-available flag in order to trigger the handler. For example, if using the Node.js [firebase-admin](https://www.npmjs.com/package/firebase-admin) package to send a "data-only" message to an iOS device:
136138

137139
```ts
138140
dmin.messaging().send({

packages/firebase-messaging/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nativescript/firebase-messaging",
3-
"version": "1.0.0-alpha.42",
3+
"version": "1.0.0",
44
"description": "NativeScript Firebase - Messaging",
55
"main": "index",
66
"typings": "index.d.ts",

packages/firebase-performance/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nativescript/firebase-performance",
3-
"version": "1.0.0-alpha.42",
3+
"version": "1.0.0",
44
"description": "NativeScript Firebase - Performancee",
55
"main": "index",
66
"typings": "index.d.ts",

packages/firebase-remote-config/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nativescript/firebase-remote-config",
3-
"version": "1.0.0-alpha.42",
3+
"version": "1.0.0",
44
"description": "NativeScript Firebase - Remote Config",
55
"main": "index",
66
"typings": "index.d.ts",

packages/firebase-storage/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nativescript/firebase-storage",
3-
"version": "1.0.0-alpha.42",
3+
"version": "1.0.0",
44
"description": "NativeScript Firebase - Storage",
55
"main": "index",
66
"typings": "index.d.ts",

0 commit comments

Comments
 (0)