question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

IOS. Custom sound for push notifications by Expo API

See original GitHub issue

Summary

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:open
  • Created 2 years ago
  • Reactions:1
  • Comments:11 (3 by maintainers)

github_iconTop GitHub Comments

6reactions
cruzachcommented, Aug 11, 2021

I think all that is required is to change the validation in the SDKs and server-side to allow sound to be a custom string

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 soon

3reactions
tnyleecommented, May 4, 2022

Would love to see this supported in the Expo Push Notification Service! We’ve installed expo-notifications config plugins not knowing this is not supported 😂

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found