You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
Copy file name to clipboardExpand all lines: CHANGELOG.md
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,14 @@
6
6
- iOS: forwards to native `IterableAPI.disableDeviceForAllUsers()`.
7
7
- Android: graceful no-op that logs a warning; use `disableDeviceForCurrentUser()` to disable push for the current user. There is no public native "all users" equivalent.
8
8
9
+
## 3.2.0
10
+
11
+
### Updates
12
+
13
+
- Bumped native SDK pins to Android [3.10.1](https://github.com/Iterable/iterable-android-sdk/releases/tag/3.10.1) and iOS [6.7.5](https://github.com/Iterable/swift-sdk/releases/tag/6.7.5). This is a native SDK bump, not new JS APIs.
14
+
- Android now pulls `androidx.work:work-runtime:2.9.0` as a transitive dependency (WorkManager replaced AsyncTask-based push handling in native 3.7.0). No app code change is required.
15
+
- On iOS, `enableUnknownUserActivation` now defaults to `false` (fixed in native 6.7.1). RN 3.1.0 pinned iOS 6.6.7, where this flag defaulted to `true`, so iOS apps were accidentally running unknown-user activation. This release does not expose that config; unknown-user activation stays off on iOS unless a later RN release adds the API. Android's default was already `false`.
@@ -54,6 +55,7 @@ Iterable's React Native SDK relies on:
54
55
```ruby
55
56
use_frameworks! :linkage => :dynamic
56
57
```
58
+
-**Xcode27:**`run-ios` needs `@react-native-community/cli`**20.2.0+** so it opens DeviceHub (`DeviceHub.app`) instead of `Simulator.app`. `xcode-select` must point at the Xcode you are usingwhen more than one version is installed. Xcode27 also refuses CocoaPods resource-bundle targets below iOS **15.0** (this SDK's `IterableSDKResources` bundle still inherits **12.0** from Iterable-iOS-SDK, including **6.7.5** pinned by RN **3.2.0**). Lift generated Pods targets to **15.1** in the app `Podfile` `post_install` — see this repo's `example/ios/Podfile`. That is a **host** workaround untilIterable's iOS SDK publishes a ≥ 15.1 minimum and this SDK depends on it. It does not change the published Iterable iOS support range.
`iterable-react-native-sdk-<version>.tgz`in the repo root, using the version
136
+
in`package.json` (for example `iterable-react-native-sdk-3.2.0.tgz`).
137
+
121
138
## Version mapping
122
139
123
140
For quick reference, the following table lists the versions of the [AndroidSDK](https://github.com/Iterable/iterable-android-sdk) and the [iOS SDK](https://github.com/Iterable/swift-sdk) the ReactNativeSDK points to for version 1.2.0and above.
Copy file name to clipboardExpand all lines: example/README.md
+17-33Lines changed: 17 additions & 33 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,27 +11,15 @@ React Native application.
11
11
>"Creating a new application" step, before proceeding.
12
12
13
13
## Step 1: Install dependencies
14
-
To install the app dependencies, run the following command from the
15
-
_example app directory_ (the directory in which this document resides):
16
14
17
-
```bash
18
-
yarn install
19
-
```
20
-
21
-
Once this is done, you will need to install the pods in the _ios_ folder in the
22
-
_example app directory_. To do so, run the following:
15
+
From the **SDK repo root** (the parent of this `example/` directory):
23
16
24
17
```bash
25
-
cd ios
26
-
bundle install
27
-
bundle exec pod install
18
+
yarn install
19
+
(cd example/ios && bundle install && bundle exec pod install)
28
20
```
29
21
30
-
Once this is done, `cd` back into the _example app directory_:
31
-
32
-
```bash
33
-
cd ..
34
-
```
22
+
`yarn install` at the root installs the Yarn workspace (SDK + example). The `example/ios` step is **iOS only** — skip it if you are only running Android.
35
23
36
24
## Step 2: Add your environment variables
37
25
In the _example app directory_, there is a file called **.env.example**. Make a
@@ -69,36 +57,26 @@ To add an API key, do the following:
69
57
6. Copy the generated API key and JWT secret into your _.env_ file
70
58
71
59
72
-
## Step 3: Start the Metro Server
60
+
## Step 3: Start your Application
73
61
74
-
First, you will need to start **Metro**, the JavaScript _bundler_ that ships _with_ React Native.
75
-
76
-
To start Metro, run the following command from the _example app directory_:
62
+
From the **SDK repo root**, run one of:
77
63
78
64
```bash
79
-
yarn start
65
+
yarn example android
80
66
```
81
67
82
-
## Step 4: Start your Application
83
-
84
-
Let Metro Bundler run in its _own_ terminal. Open a _new_ terminal from the _example app directory_. Run the following command to start your _Android_ or _iOS_ app:
85
-
86
-
### For Android
87
-
88
68
```bash
89
-
yarn android
69
+
yarn example ios
90
70
```
91
71
92
-
### For iOS
72
+
`run-android` / `run-ios` start **Metro** in a separate terminal by default. You do not need to run `yarn start` first. Pass `--no-packager` if you already have Metro running and do not want a second window.
93
73
94
-
```bash
95
-
yarn ios
96
-
```
74
+
On **Xcode 27**, the CLI opens **Device Hub** (`DeviceHub.app`) instead of Simulator. This example pins `@react-native-community/cli`**20.2.0+** for that path. If several Xcode versions are installed, `xcode-select -p` must point at the one you intend to use.
97
75
98
76
**NOTE**: If you are getting an error when running ios, make sure that *Xcode > Project Navigator > ReactNativeSdkExample > Build Settings > User
99
77
Script Sandboxing* is set to **No**
100
78
101
-
If everything is set up _correctly_, you should see your new app running in your _Android Emulator_ or _iOS Simulator_ shortly provided you have set up your emulator/simulator correctly.
79
+
If everything is set up _correctly_, you should see your new app running in your _Android Emulator_ or on iOS (Simulator on Xcode 26 and earlier, Device Hub on Xcode 27) shortly provided you have set up your emulator/simulator correctly.
102
80
103
81
This is one way to run your app — you can also run it directly from within Android Studio and Xcode respectively.
Xcode 27 replaces `Simulator.app` with Device Hub. `yarn ios` / `yarn example ios` require `@react-native-community/cli`**20.2.0+** (this example already pins it). A `Simulator.app does not exist` error means an older CLI is still on the path, or `xcode-select` points at a different Xcode.
202
+
203
+
Xcode 27's iOS SDK also rejects any target with `IPHONEOS_DEPLOYMENT_TARGET` below **15.0**, including CocoaPods resource bundles such as `Iterable-iOS-SDK-IterableSDKResources` (12.0 from Iterable-iOS-SDK, including **6.7.5** pinned by RN **3.2.0**). This example's `ios/Podfile``post_install` lifts generated Pods targets to **15.1**. Copy that lift into a host app Podfile if you hit the same `xcodebuild` 65 error. It does not change Iterable-iOS-SDK's published minimum; that wait is a later iOS SDK release that raises the platform to ≥ 15.1.
204
+
221
205
## Xcode 16.3 Issue
222
206
223
207
There is a [known issue](https://github.com/facebook/react-native/issues/50411)
0 commit comments