Skip to content

Commit 5e007e6

Browse files
committed
seperate ios and macos entitlements steps in a blockswitcher
1 parent 1888646 commit 5e007e6

File tree

1 file changed

+26
-3
lines changed

1 file changed

+26
-3
lines changed

src/fragments/lib/push-notifications/ios/getting_started/20_set_entitlements.mdx

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ Using Amazon Pinpoint with APNs requires the following capabilities
77

88
To add these capabilities:
99

10+
<BlockSwitcher>
11+
<Block name="iOS">
12+
1013
1. In project settings, select your main application target, select the **Signing and Capabilities** tab, and click **+ Capability** in the upper left corner of the editor pane to bring up the Capabilities dialog.
1114

1215
![Add capability](/images/push-notifications/xcode-entitlements/01_add-capability.png)
@@ -21,7 +24,7 @@ Xcode can be a little finicky with this step. If the Capabilities dialog is empt
2124

2225
![Add push](/images/push-notifications/xcode-entitlements/02_add-push.png)
2326

24-
3. If your app supports **iOS**, repeat step 1 to open the Capabilities dialog and then type **back** in the filter box and double-click **Background Modes** to add the capability.
27+
3. Repeat step 1 to open the Capabilities dialog and then type **back** in the filter box and double-click **Background Modes** to add the capability.
2528

2629
![Add background](/images/push-notifications/xcode-entitlements/03_add-background.png)
2730

@@ -33,10 +36,30 @@ Xcode can be a little finicky with this step. If the Capabilities dialog is empt
3336

3437
6. Select **Change All** again when prompted.
3538

36-
7. If your app supports **macOS**, repeat step 1 to open the Capabilities dialog and then type **sand** in the filter box and double-click **App Sandbox** to add the capability.
39+
</Block>
40+
<Block name="macOS">
41+
42+
1. In project settings, select your main application target, select the **Signing and Capabilities** tab, and click **+ Capability** in the upper left corner of the editor pane to bring up the Capabilities dialog.
43+
44+
![Add capability](/images/push-notifications/xcode-entitlements/01_add-capability.png)
45+
46+
<Callout>
47+
48+
Xcode can be a little finicky with this step. If the Capabilities dialog is empty, try switching to a different tab and then switching back to **Signing and Capabilities**
49+
50+
</Callout>
51+
52+
2. Type **push** in the filter box and double-click **Push Notifications** to add the capability.
53+
54+
![Add push](/images/push-notifications/xcode-entitlements/02_add-push.png)
55+
56+
3. Repeat step 1 to open the Capabilities dialog and then type **sand** in the filter box and double-click **App Sandbox** to add the capability.
3757

3858
![App sandbox](/images/push-notifications/xcode-entitlements/05_app-sandbox.png)
3959

40-
8. Under **App Sandbox**, select **Outgoing Connections (Client)**
60+
4. Under **App Sandbox**, select **Outgoing Connections (Client)**
4161

4262
![Outgoing connections](/images/push-notifications/xcode-entitlements/06_app-sandbox-outgoing-connections.png)
63+
64+
</Block>
65+
</BlockSwitcher>

0 commit comments

Comments
 (0)