infobip-mobile-messaging-react-native-plugin 11.1.1 → 11.2.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/README.md CHANGED
@@ -22,7 +22,7 @@ For iOS project:
22
22
  For Android project:
23
23
  - Android Studio (Bumblebee | 2021.1.1)
24
24
  - Gradle (v7.3.3)
25
- - Supported API Levels: 21 (Android 5.0 - [Lollipop](https://developer.android.com/about/versions/lollipop)) - 33 (Android 13.0)
25
+ - Supported API Levels: 21 (Android 5.0 - [Lollipop](https://developer.android.com/about/versions/lollipop)) - 34 ([Android 14.0](https://developer.android.com/about/versions/14))
26
26
 
27
27
  ## Quick start guide
28
28
 
@@ -1,5 +1,7 @@
1
1
  package org.infobip.reactlibrary.mobilemessaging;
2
2
 
3
+ import static android.content.Context.RECEIVER_NOT_EXPORTED;
4
+
3
5
  import android.Manifest;
4
6
  import android.annotation.SuppressLint;
5
7
  import android.app.Activity;
@@ -352,7 +354,11 @@ public class ReactNativeMobileMessagingModule extends ReactContextBaseJavaModule
352
354
  commonLibIntentFilter.addAction(action);
353
355
  }
354
356
 
355
- reactContext.registerReceiver(commonLibraryBroadcastReceiver, commonLibIntentFilter);
357
+ if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) {
358
+ reactContext.registerReceiver(commonLibraryBroadcastReceiver, commonLibIntentFilter, RECEIVER_NOT_EXPORTED);
359
+ } else {
360
+ reactContext.registerReceiver(commonLibraryBroadcastReceiver, commonLibIntentFilter);
361
+ }
356
362
 
357
363
  IntentFilter messageStorageIntentFilter = new IntentFilter();
358
364
  for (String action : messageStorageEventMap.keySet()) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "infobip-mobile-messaging-react-native-plugin",
3
3
  "title": "Infobip Mobile Messaging React Native Plugin",
4
- "version": "11.1.1",
4
+ "version": "11.2.0",
5
5
  "description": "Infobip Mobile Messaging React Native Plugin",
6
6
  "main": "./src/index.js",
7
7
  "scripts": {