Skip to content

Commit eee06e8

Browse files
authored
Merge pull request #6142 from segmentio/joeynmq-patch-2
Add FAQ about loading multiple writeKeys for iOS
2 parents 7585b6f + ed59509 commit eee06e8

File tree

1 file changed

+9
-1
lines changed
  • src/connections/sources/catalog/libraries/mobile/ios

1 file changed

+9
-1
lines changed

src/connections/sources/catalog/libraries/mobile/ios/ios-faqs.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,14 @@ Once you install the framework, import the header file and install as described
2828
If you choose not to use a dependency manager, you must manually keep files up-to-date with regularly scheduled, manual updates.
2929

3030

31+
## Can I initiate multiple `writeKey`s for a single iOS project?
32+
No, Segment doesn't support sending events to multiple `writeKey`s for a single iOS project post-initialization. You can conditionally set the `writeKey` based on an environment variable. For example:
33+
```objc
34+
let writeKey
35+
ENV == 'production' ? (writeKey = 'A') : (writeKey = 'B')
36+
```
37+
38+
3139
## Should I include each destination's native SDK in my project?
3240

3341
No. Don't include destination-native SDKs manually for a service Segment supports. Instead, bundle the destination's Segment-integration SDK.
@@ -258,4 +266,4 @@ If you are tracking App Clips using iOS or Swift libraries, there is a chance th
258266
259267
## Why am I seeing a value of -- set for the network carrier?
260268
261-
With iOS [16.4](https://developer.apple.com/documentation/ios-ipados-release-notes/ios-ipados-16_4-release-notes#Core-Telephony){:target="_blank"}, Apple deprecated the method to return the network carrier. The iOS library can no longer return a valid value for the network carrier on devices using iOS 16.4 or later. As a result, you will likely see `--` set for the `context.network.carrier` field.
269+
With iOS [16.4](https://developer.apple.com/documentation/ios-ipados-release-notes/ios-ipados-16_4-release-notes#Core-Telephony){:target="_blank"}, Apple deprecated the method to return the network carrier. The iOS library can no longer return a valid value for the network carrier on devices using iOS 16.4 or later. As a result, you will likely see `--` set for the `context.network.carrier` field.

0 commit comments

Comments
 (0)