@bubblsdk/react-native-sdk 4.0.1 → 4.0.3

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.
@@ -1,6 +1,6 @@
1
1
  Pod::Spec.new do |s|
2
2
  s.name = 'BubblReactNativeSdk'
3
- s.version = '4.0.1'
3
+ s.version = '4.0.3'
4
4
  s.summary = 'React Native wrapper for Bubbl SDK v3 native Android and iOS cores.'
5
5
  s.homepage = 'https://bubbl.tech'
6
6
  s.license = { :type => 'Commercial', :text => 'Copyright Bubbl. All rights reserved.' }
@@ -13,5 +13,5 @@ Pod::Spec.new do |s|
13
13
  s.static_framework = true
14
14
 
15
15
  s.dependency 'React-Core'
16
- s.dependency 'BubblSDK', '4.0.1'
16
+ s.dependency 'BubblSDK', '4.0.3'
17
17
  end
package/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # Changelog
2
2
 
3
+ ## Unreleased
4
+
5
+ ## 4.0.3
6
+
7
+ - Aligns the React Native wrapper with the native SDK 4.0.3 release.
8
+ - Native SDK notification open interactions now ship `notification_opened` activity events to ingest instead of dropping them.
9
+
10
+ ## 4.0.2
11
+
12
+ - Caps Android background location update distance independently from the campaign discovery radius so background geofence notifications can fire while apps request broad campaign discovery.
13
+ - React Native wrapper `registerPushToken` now flushes the ingest queue immediately after queuing the device registration, so supplied FCM/APNs tokens reach the platform without requiring host apps to call `flush()` separately.
14
+ - Aligns the React Native wrapper with the native SDK 4.0.2 release.
15
+
3
16
  ## 4.0.1
4
17
 
5
18
  - Android and iOS default notification modals now render image, audio, and video media inline instead of showing an external media button.
@@ -4,7 +4,7 @@ plugins {
4
4
  }
5
5
 
6
6
  group = "tech.bubbl.reactnative"
7
- version = "4.0.1"
7
+ version = "4.0.3"
8
8
 
9
9
  def isNewArchitectureEnabled() {
10
10
  project.hasProperty("newArchEnabled") && project.newArchEnabled == "true"
@@ -41,6 +41,6 @@ android {
41
41
 
42
42
  dependencies {
43
43
  implementation "com.facebook.react:react-android:${reactNativeVersion}"
44
- implementation "tech.bubbl.sdk:bubbl-sdk:4.0.1"
44
+ implementation "tech.bubbl.sdk:bubbl-sdk:4.0.3"
45
45
  implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.8.1"
46
46
  }
@@ -183,6 +183,7 @@ class BubblSdkModule(
183
183
  @ReactMethod
184
184
  fun registerPushToken(token: String, promise: Promise) = resolve(promise) {
185
185
  BubblSdk.registerPushToken(token)
186
+ BubblSdk.flush()
186
187
  null
187
188
  }
188
189
 
@@ -239,6 +239,7 @@ final class BubblSdk: RCTEventEmitter {
239
239
  ) {
240
240
  resolveAsync(resolve, reject) {
241
241
  try await self.sdk.registerPushToken(token as String)
242
+ _ = await self.sdk.flush()
242
243
  return nil
243
244
  }
244
245
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bubblsdk/react-native-sdk",
3
- "version": "4.0.1",
3
+ "version": "4.0.3",
4
4
  "description": "React Native wrapper for Bubbl SDK v3 native Android and iOS cores.",
5
5
  "main": "src/index.ts",
6
6
  "module": "src/index.ts",