@react-native-firebase/messaging 14.2.2 → 14.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,24 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [14.3.1](https://github.com/invertase/react-native-firebase/compare/v14.3.0...v14.3.1) (2022-02-07)
7
+
8
+ **Note:** Version bump only for package @react-native-firebase/messaging
9
+
10
+ # [14.3.0](https://github.com/invertase/react-native-firebase/compare/v14.2.4...v14.3.0) (2022-01-26)
11
+
12
+ ### Bug Fixes
13
+
14
+ - **messaging:** add missing PRIORITY_MIN value in JS to match TS ([#6033](https://github.com/invertase/react-native-firebase/issues/6033)) ([d34112a](https://github.com/invertase/react-native-firebase/commit/d34112aa91b18d1d105adaf52eb98bb197cffaa6))
15
+
16
+ ## [14.2.4](https://github.com/invertase/react-native-firebase/compare/v14.2.3...v14.2.4) (2022-01-24)
17
+
18
+ **Note:** Version bump only for package @react-native-firebase/messaging
19
+
20
+ ## [14.2.3](https://github.com/invertase/react-native-firebase/compare/v14.2.2...v14.2.3) (2022-01-20)
21
+
22
+ **Note:** Version bump only for package @react-native-firebase/messaging
23
+
6
24
  ## [14.2.2](https://github.com/invertase/react-native-firebase/compare/v14.2.1...v14.2.2) (2022-01-06)
7
25
 
8
26
  ### Bug Fixes
package/lib/index.d.ts CHANGED
@@ -705,18 +705,18 @@ export namespace FirebaseMessagingTypes {
705
705
  * be received or sent.
706
706
  *
707
707
  * On iOS < 12, a modal will be shown to the user requesting messaging permissions for the app.
708
- * Once handled, the promise will resolve with `true` if permission was granted.
708
+ * Once handled, the promise will resolve with `AuthorizationStatus.AUTHORIZED` if permission was granted.
709
709
  *
710
710
  * On iOS >= 12, the app will be granted [Provisional Authorization](http://iosbrain.com/blog/2018/07/05/new-in-ios-12-implementing-provisional-authorization-for-quiet-notifications-in-swift/),
711
- * and will resolve `true`. The user will be able to receive FCM payloads and Notifications immediately;
711
+ * and will resolve `AuthorizationStatus.AUTHORIZED`. The user will be able to receive FCM payloads and Notifications immediately;
712
712
  * but notifications will be displayed silently. The user, through Notification Center, then has the option of upgrading your apps notifications to no longer be silent.
713
713
  *
714
- * > You can safely call this method on Android without platform checks. It's a no-op on Android and will promise resolve `true`.
714
+ * > You can safely call this method on Android without platform checks. It's a no-op on Android and will promise resolve `AuthorizationStatus.AUTHORIZED`.
715
715
  *
716
716
  * #### Example
717
717
  *
718
718
  * ```js
719
- * const permissionGranted = await firebase.messaging().requestPermission();
719
+ * const authorizationStatus = await firebase.messaging().requestPermission();
720
720
  * ```
721
721
  *
722
722
  * @ios
package/lib/index.js CHANGED
@@ -41,6 +41,7 @@ const statics = {
41
41
  PROVISIONAL: 2,
42
42
  },
43
43
  NotificationAndroidPriority: {
44
+ PRIORITY_MIN: -2,
44
45
  PRIORITY_LOW: -1,
45
46
  PRIORITY_DEFAULT: 0,
46
47
  PRIORITY_HIGH: 1,
package/lib/version.js CHANGED
@@ -1,2 +1,2 @@
1
1
  // generated by genversion
2
- module.exports = '14.2.2';
2
+ module.exports = '14.3.1';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-native-firebase/messaging",
3
- "version": "14.2.2",
3
+ "version": "14.3.1",
4
4
  "author": "Invertase <oss@invertase.io> (http://invertase.io)",
5
5
  "description": "React Native Firebase - React Native Firebase provides native integration of Firebase Cloud Messaging (FCM) for both Android & iOS. FCM is a cost free service, allowing for server-device and device-device communication. The React Native Firebase Messaging module provides a simple JavaScript API to interact with FCM.",
6
6
  "main": "lib/index.js",
@@ -22,10 +22,10 @@
22
22
  "messaging"
23
23
  ],
24
24
  "peerDependencies": {
25
- "@react-native-firebase/app": "14.2.2"
25
+ "@react-native-firebase/app": "14.3.1"
26
26
  },
27
27
  "publishConfig": {
28
28
  "access": "public"
29
29
  },
30
- "gitHead": "7b0de31e45be9ca7571583e77d1b06c3088df053"
30
+ "gitHead": "211b7531b731a1fd7feb11ee1d1822470a31eac2"
31
31
  }