Skip to content

Commit 4f47abf

Browse files
maratalclaude
andcommitted
fix(fcm-guide): re-word Step 2 opening sentence
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent dc23abc commit 4f47abf

3 files changed

Lines changed: 10 additions & 10 deletions

File tree

src/pages/docs/push/getting-started/apns.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ struct ContentView: View {
308308
let appDelegate: AppDelegate
309309

310310
@State private var statusMessage = "Ready to start"
311-
@State private var selectedChannel = "exampleChannel1"
311+
@State private var selectedChannel = "my-first-push-channel"
312312

313313
var body: some View {
314314
NavigationStack {
@@ -452,7 +452,7 @@ struct SetupPushSection: View {
452452
// Helper to get a user-friendly title for a channel
453453
func titleForChannel(_ name: String) -> String {
454454
let titles = [
455-
"exampleChannel1": "Channel 1",
455+
"my-first-push-channel": "Channel 1",
456456
"exampleChannel2": "Channel 2"
457457
]
458458
return titles[name] ?? name
@@ -471,8 +471,8 @@ struct ChannelSection: View {
471471
VStack(spacing: 10) {
472472
HStack(spacing: 8) {
473473
Menu {
474-
Button(titleForChannel("exampleChannel1")) {
475-
selectedChannel = "exampleChannel1"
474+
Button(titleForChannel("my-first-push-channel")) {
475+
selectedChannel = "my-first-push-channel"
476476
}
477477
Button(titleForChannel("exampleChannel2")) {
478478
selectedChannel = "exampleChannel2"
@@ -555,7 +555,7 @@ Subscribe to "Channel 1" in the UI, then publish a push notification to the chan
555555

556556
<Code fixed="true">
557557
```shell
558-
ably push publish --channel exampleChannel1 \
558+
ably push publish --channel my-first-push-channel \
559559
--title "Hello" \
560560
--body "World!" \
561561
--message '{"name":"greeting","data":"Hello World!"}'

src/pages/docs/push/getting-started/fcm.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ class MainActivity : AppCompatActivity() {
192192

193193
companion object {
194194
private const val TAG = "MainActivity"
195-
private const val CHANNEL_NAME = "exampleChannel1"
195+
private const val CHANNEL_NAME = "my-first-push-channel"
196196
}
197197

198198
private val realtime by lazy { AblyHelper.getInstance() }
@@ -493,7 +493,7 @@ class MainActivity : AppCompatActivity() {
493493

494494
companion object {
495495
private const val TAG = "MainActivity"
496-
private const val CHANNEL_NAME = "exampleChannel1"
496+
private const val CHANNEL_NAME = "my-first-push-channel"
497497
}
498498

499499
private val realtime by lazy { AblyHelper.getInstance() }
@@ -657,7 +657,7 @@ Tap **Subscribe to Channel** in the app, then publish a push notification to the
657657

658658
<Code fixed="true">
659659
```shell
660-
ably push publish --channel exampleChannel1 \
660+
ably push publish --channel my-first-push-channel \
661661
--title "Hello" \
662662
--body "World!" \
663663
--message '{"name":"greeting","data":"Hello World!"}'

src/pages/docs/push/getting-started/web.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ Now add this code inside the empty `<script>` tag to initialize the Ably client
126126

127127
<Code>
128128
```javascript
129-
const channelName = 'exampleChannel1';
129+
const channelName = 'my-first-push-channel';
130130

131131
let realtimeClient;
132132
let channel;
@@ -549,7 +549,7 @@ Click **Subscribe** in the app, then publish a push notification to the channel
549549

550550
<Code fixed="true">
551551
```shell
552-
ably push publish --channel exampleChannel1 \
552+
ably push publish --channel my-first-push-channel \
553553
--title "Hello" \
554554
--body "World!" \
555555
--message '{"name":"greeting","data":"Hello World!"}'

0 commit comments

Comments
 (0)