@react-native-firebase/messaging 15.3.0 → 15.5.0

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,16 @@
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
+ # [15.5.0](https://github.com/invertase/react-native-firebase/compare/v15.4.0...v15.5.0) (2022-09-16)
7
+
8
+ **Note:** Version bump only for package @react-native-firebase/messaging
9
+
10
+ # [15.4.0](https://github.com/invertase/react-native-firebase/compare/v15.3.0...v15.4.0) (2022-08-27)
11
+
12
+ ### Bug Fixes
13
+
14
+ - **messaging, ios:** Support Ephemeral authorization state ([#6478](https://github.com/invertase/react-native-firebase/issues/6478)) ([795b684](https://github.com/invertase/react-native-firebase/commit/795b68472deb0089ac4ddf7270e361a2db1da351))
15
+
6
16
  # [15.3.0](https://github.com/invertase/react-native-firebase/compare/v15.2.0...v15.3.0) (2022-08-07)
7
17
 
8
18
  ### Bug Fixes
@@ -321,6 +321,12 @@ RCT_EXPORT_METHOD(hasPermission : (RCTPromiseResolveBlock)resolve : (RCTPromiseR
321
321
  }
322
322
  }
323
323
 
324
+ if (@available(iOS 14.0, macCatalyst 14.0, *)) {
325
+ if (settings.authorizationStatus == UNAuthorizationStatusEphemeral) {
326
+ authorizedStatus = @3;
327
+ }
328
+ }
329
+
324
330
  resolve(authorizedStatus);
325
331
  }];
326
332
  } else {
package/lib/index.d.ts CHANGED
@@ -501,6 +501,13 @@ export namespace FirebaseMessagingTypes {
501
501
  * @platform ios iOS >= 12
502
502
  */
503
503
  PROVISIONAL = 2,
504
+
505
+ /**
506
+ * The app is authorized to create notifications for a limited amount of time.
507
+ * Used in App Clips.
508
+ * @platform ios iOS >= 14
509
+ */
510
+ EPHEMERAL = 3,
504
511
  }
505
512
 
506
513
  /**
package/lib/index.js CHANGED
@@ -40,6 +40,7 @@ const statics = {
40
40
  DENIED: 0,
41
41
  AUTHORIZED: 1,
42
42
  PROVISIONAL: 2,
43
+ EPHEMERAL: 3,
43
44
  },
44
45
  NotificationAndroidPriority: {
45
46
  PRIORITY_MIN: -2,
package/lib/version.js CHANGED
@@ -1,2 +1,2 @@
1
1
  // Generated by genversion.
2
- module.exports = '15.3.0';
2
+ module.exports = '15.5.0';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-native-firebase/messaging",
3
- "version": "15.3.0",
3
+ "version": "15.5.0",
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": "15.3.0"
25
+ "@react-native-firebase/app": "15.5.0"
26
26
  },
27
27
  "publishConfig": {
28
28
  "access": "public"
29
29
  },
30
- "gitHead": "97f6e273efaac64d8a62eae4be390289e69d506b"
30
+ "gitHead": "af2dd9e79a62ab370c6370a3d741d04542d50b24"
31
31
  }