Skip to content

Commit 5d78c5a

Browse files
committed
feat: add sound notification button to demo build guide (#22)
1 parent 1fbd1bb commit 5d78c5a

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

assets/vine_boon.wav

783 KB
Binary file not shown.

demo/build.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ Clean up listeners on teardown (if platform requires it).
110110
1. **App Section** (App ID, Guidance Banner, Consent Toggle)
111111
2. **User Section** (Status, External ID, Login/Logout)
112112
3. **Push Section** (Push ID, Enabled Toggle, Auto-prompts on load)
113-
4. **Send Push Notification Section** (Simple, With Image, Custom, Clear All)
113+
4. **Send Push Notification Section** (Simple, With Image, With Sound, Custom, Clear All)
114114
5. **In-App Messaging Section** (Pause toggle)
115115
6. **Send In-App Message Section** (Top Banner, Bottom Banner, Center Modal, Full Screen)
116116
7. **Aliases Section** (Add/Add Multiple, read-only list)
@@ -159,12 +159,15 @@ Separate SectionCard titled "User":
159159
### Prompt 2.3 - Send Push Notification Section
160160

161161
- Title: "Send Push Notification" with info icon
162-
- Four buttons:
162+
- Five buttons:
163163
1. SIMPLE - title: "Simple Notification", body: "This is a simple push notification"
164164
2. WITH IMAGE - title: "Image Notification", body: "This notification includes an image"
165165
big_picture/ios_attachments: `https://media.onesignal.com/automated_push_templates/ratings_template.png`
166-
3. CUSTOM - dialog for custom title and body
167-
4. CLEAR ALL - destructive/outlined style, calls OneSignal.Notifications.clearAll()
166+
3. WITH SOUND - title: "Sound Notification", body: "This notification plays a custom sound"
167+
ios_sound: "vine_boom.wav", android_channel_id: "b3b015d9-c050-4042-8548-dcc34aa44aa4"
168+
Sound file: download `vine_boom.wav` from https://github.com/OneSignal/sdk-shared/blob/main/assets/vine_boom.wav and place in local assets
169+
4. CUSTOM - dialog for custom title and body
170+
5. CLEAR ALL - destructive/outlined style, calls OneSignal.Notifications.clearAll()
168171

169172
### Prompt 2.4 - In-App Messaging Section
170173

0 commit comments

Comments
 (0)