@bubblsdk/react-native-sdk 4.0.0 → 4.0.2

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.0'
3
+ s.version = '4.0.2'
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.0'
16
+ s.dependency 'BubblSDK', '4.0.2'
17
17
  end
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## Unreleased
4
+
5
+ ## 4.0.2
6
+
7
+ - Caps Android background location update distance independently from the campaign discovery radius so background geofence notifications can fire while apps request broad campaign discovery.
8
+ - 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.
9
+ - Aligns the React Native wrapper with the native SDK 4.0.2 release.
10
+
11
+ ## 4.0.1
12
+
13
+ - Android and iOS default notification modals now render image, audio, and video media inline instead of showing an external media button.
14
+ - YouTube notification media remains embedded in-app inside the default modal.
15
+ - Aligns the React Native wrapper with the native SDK 4.0.1 release.
16
+
3
17
  ## 4.0.0
4
18
 
5
19
  - Primes iOS native background region monitoring when location tracking starts and after geofence/location refresh calls, so background geofence notifications can fire without relying on foreground JavaScript execution.
@@ -4,7 +4,7 @@ plugins {
4
4
  }
5
5
 
6
6
  group = "tech.bubbl.reactnative"
7
- version = "4.0.0"
7
+ version = "4.0.2"
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.0"
44
+ implementation "tech.bubbl.sdk:bubbl-sdk:4.0.2"
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.0",
3
+ "version": "4.0.2",
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",