IOS. Custom sound for push notifications by Expo API
See original GitHub issueSummary
I try to send push notification with custom sound property to IOS device using expoPushToken and Expo API and get error.
Request:
curl -H "Content-Type: application/json" -X POST "https://exp.host/--/api/v2/push/send" -d '[{"to":"ExponentPushToken[XXXXXXX]","body":"hello","sound":"ca_ching.wav"}]'
Response:
{"errors":[{"code":"VALIDATION_ERROR","message":"\"[0].sound\" must be one of [default, null, object].","isTransient":false}]}%
Am I rightly understand that exists only one way to use custom sound for push notifications for IOS - it’s use APNS API directly without Expo API?
Thanks! Expo the best! ❤️
Link to the related docs page
No response
Anything else?
No response
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:11 (3 by maintainers)
Top Results From Across the Web
Notifications - Expo Documentation
The expo-notifications provides an API to fetch push notification tokens and to present, schedule, ... To add custom push notification sounds to your...
Read more >Push Notification: Include custom sound files in build - Expo
I can trigger local notifications with custom sounds just fine, but, if the app is backgrounded on iOS, I cannot figure out the...
Read more >Expo push notifications with custom sound on bare workflow
I received a notification with a default sound. It looks like the channel doesn't work. I tried to send it using expo-server-sdk-java also....
Read more >First-class push notifications for Expo apps | by Carles Capellas
We will need to configure both FCM and APNs credentials and call their APIs for our app to successfully deliver notifications. Push tokens....
Read more >Push notifications | Customer.io Docs
The Expo plugin supports push notifications over APN for iOS and FCM for Android. Use this page to get started with push notification...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
You’re correct, Expo’s push service doesn’t support custom notification sounds yet, although the client-side API (
expo-notifications
) does, this way you can use FCM & APNs directly if you need that functionality. We’re looking into adding in support soonWould love to see this supported in the Expo Push Notification Service! We’ve installed
expo-notifications
config plugins not knowing this is not supported 😂