@bubblsdk/react-native-sdk 3.0.6 → 3.0.7

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 = '3.0.6'
3
+ s.version = '3.0.7'
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', '3.0.6'
16
+ s.dependency 'BubblSDK', '3.0.7'
17
17
  end
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 3.0.7
4
+
5
+ - Restyles the native SDK default notification modal on Android and iOS with a light card layout, clearer actions, and polished survey controls.
6
+ - Adds regression coverage so survey options/choices continue to survive notification payload parsing.
7
+ - Aligns the React Native wrapper with the native SDK 3.0.7 release.
8
+
3
9
  ## 3.0.6
4
10
 
5
11
  - Bridges iOS `geofenceSnapshot` events through the React Native wrapper so iOS map/campaign UIs receive the same active geofence snapshot as Android.
package/README.md CHANGED
@@ -18,6 +18,23 @@ import { Bubbl } from '@bubblsdk/react-native-sdk';
18
18
  await Bubbl.boot({ apiKey: '...' });
19
19
  ```
20
20
 
21
+ Enable SDK-owned location/background processing when the host app has collected
22
+ location permission:
23
+
24
+ ```ts
25
+ await Bubbl.boot({
26
+ apiKey: '...',
27
+ enableLocationTracking: true,
28
+ });
29
+
30
+ await Bubbl.startLocationTracking();
31
+ ```
32
+
33
+ The SDK owns the native background mechanics once enabled: Android uses the
34
+ bundled foreground location service and WorkManager restore/refresh path, and
35
+ iOS uses the bundled CoreLocation monitor. The host app still owns platform
36
+ declarations and runtime permission UX.
37
+
21
38
  For apps that render their own in-app notification modal while still letting
22
39
  the native SDK trigger device notifications:
23
40
 
@@ -94,4 +111,4 @@ subscription.remove();
94
111
 
95
112
  - Android depends on `tech.bubbl.sdk:bubbl-sdk` and requires `minSdkVersion 27` or higher.
96
113
  - iOS depends on the `BubblSDK` CocoaPods/Swift package release and requires iOS 15 or higher.
97
- - Host apps still need the usual platform permissions for push notifications and location tracking.
114
+ - Host apps must declare push/location permissions. Android needs coarse/fine/background location, foreground-service location, and notification permissions. iOS needs location usage descriptions and `UIBackgroundModes` entries for `location` and `remote-notification`.
@@ -4,7 +4,7 @@ plugins {
4
4
  }
5
5
 
6
6
  group = "tech.bubbl.reactnative"
7
- version = "3.0.6"
7
+ version = "3.0.7"
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:3.0.6"
44
+ implementation "tech.bubbl.sdk:bubbl-sdk:3.0.7"
45
45
  implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.8.1"
46
46
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bubblsdk/react-native-sdk",
3
- "version": "3.0.6",
3
+ "version": "3.0.7",
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",