Skip to content

Commit 2de094b

Browse files
authored
Update README.md
1 parent fab8dfd commit 2de094b

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

README.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,19 @@ Add the following `meta-data` entries to your AndroidManifest.xml inside the <ap
116116
...
117117
```
118118

119-
120119
### Using the proxy server with the iOS SDK
121120

122121
Immediately after you initialize the Mixpanel instance, set the proxy url:
123122
```objectivec
124-
self.mixpanel.serverURL = YOUR_PROXY_DOMAIN; // e.g. "https://proxy-eoca2pin3q-uc.a.run.app"
123+
self.mixpanel = [Mixpanel sharedInstanceWithToken:@"YOUR_PROJECT_TOKEN" launchOptions:launchOptions];
124+
self.mixpanel.serverURL = YOUR_PROXY_DOMAIN; // e.g. @"https://proxy-eoca2pin3q-uc.a.run.app"
125+
```
126+
127+
128+
### Using the proxy server with the Swift SDK
129+
130+
Immediately after you initialize the Mixpanel instance, set the proxy url:
131+
```swift
132+
mixpanel = Mixpanel.initialize(token: "YOUR_PROJECT_TOKEN")
133+
mixpanel.serverURL = YOUR_PROXY_DOMAIN // e.g. "https://proxy-eoca2pin3q-uc.a.run.app"
125134
```

0 commit comments

Comments
 (0)