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
fix(push-guides): update APNs guide UI and logic to match other guides
- Show device ID after activation instead of APNs device token
- Add subscribeToRealtime method and call it on launch
- Remove getDeviceDetails method and button
- Simplify ChannelSection to single channel, remove picker
- Match button titles and colors (purple subscribe, orange unsubscribe)
- Add location push screenshot
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Text("Unsubscribe from \(titleForChannel(selectedChannel))")
461
+
Text("Unsubscribe from Channel")
514
462
}
515
463
.frame(maxWidth: .infinity)
516
464
.padding()
517
-
.background(Color.gray)
465
+
.background(Color.orange)
518
466
.foregroundStyle(.white)
519
467
.cornerRadius(8)
520
468
}
@@ -534,7 +482,7 @@ push notifications and subscribe to channels.
534
482
535
483
## Step 5: Publish a push notification <aid="step-5"/>
536
484
537
-
Tap **Activate Push** and wait until the status message displays the received device token. You can get your device ID from the **Get Device Details** button (don't confuse it with the device token).
485
+
Tap **Activate Push** and wait until the status message displays your device ID.
538
486
539
487
### Publish directly to your device <aid="step-5-direct"/>
Subscribe to "Channel 1" in the UI, then publish a push notification to the channel using the [Ably CLI](/docs/platform/tools/cli):
502
+
Tap **Subscribe to Channel** in the UI, then publish a push notification to the channel using the [Ably CLI](/docs/platform/tools/cli):
555
503
556
504
<Codefixed="true">
557
505
```shell
@@ -793,6 +741,8 @@ Read how to obtain the `AUTHENTICATION_TOKEN` on [Apple Developer Portal](https:
793
741
794
742
Verify that your app receives and handles location push notifications correctly in the `LocationPushService` class.
795
743
744
+

745
+
796
746
## Next steps <aid="next-steps"/>
797
747
798
748
* Check the [push example](https://github.com/ably/ably-cocoa/tree/main/Examples/AblyPush)
0 commit comments