Request Logistic
Request Logistic

Reputation: 73

Push notifcation custom sound stopped working

I have live app in app store which uses firebase fcm to send push notification using firebase cloud function. On arrival of push notification app plays custom sound provided in main bundle of xcode. But since last 24 hours app not playing custom sound for push notification on ios devices but its playing default iphone notfcation sound. On android devices its playing custom sound.i did not change sound file nor i update any code. The app is live in app store since months and suddenly stopped playing custom sound. Velow is the code of my payload. Waiting for your help.

const payload = {

      notification: {

          title: 'New Orderد',
          body: 'New Order in '+storename,
          badge: '1',
          sound: 'mergedrequest.mp3',
          android_channel_id: 'driverrequestsoundchannelid'

      }

Upvotes: 5

Views: 756

Answers (2)

Certitude
Certitude

Reputation: 91

Answer from Firebase customer support:

Just to set expectations, this issue was just recently identified as a bug with our Legacy API that’s not properly handling the custom sound for iOS. Our engineering team has identified the fix for this issue, and we couldn’t provide a definite timeline at the moment for the release in our production. For now, you might consider using our HTTP v1 API to send your messages.

Upvotes: 4

SKim
SKim

Reputation: 103

I had the same issue and migrating to HTTP v1 API worked for me

https://firebase.google.com/docs/cloud-messaging/migrate-v1

Upvotes: 1

Related Questions