You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Does anyone know how to get custom sound notifications to play on iOS? I have it working in Android by changing the name of my sound file to "chime" and placing it in the appropriate directory on my Cordova build. I think the problem with it not working (push notifications do work with default sound) the file name needs to be explicitly named. "chime.mp3". I've been looking at the PushNotification.js class in particular the method: send();
If the file needs to be explicitly named for iOS to recognize, how could we determine if the the client is an iOS device or Android to adjust the name of the file accordingly?
Also:
Does the (apn:{} object) in Rocket.Chat object pertain to APPLE'S (aps:{} object)?
The text was updated successfully, but these errors were encountered:
@Syirrus Just to be sure, are you talking about the Cordova app, or the native iOS app? If you have questions about how to send the sound on the push body data, here's how to do it: http://stackoverflow.com/a/37536705/1088230.
@rafaelks Thanks for responding. I have followed this on stackoverflow before. I think the issue is this:
For Android you specify the sound payload, without the file extension i.e.: sound: 'chime'.
For iOS you specify the sound payload with the file extension i.e. sound: 'chime.wav'.
Since in pushNotification.js it's defined as 'chime' it works and in android and NOT iOS. Conversely if you change it to be 'chime.wav', it will work on iOS and not Android.
Rocket.Chat Version: 0.55.0
Running Instances: 1
DB Replicaset OpLog: None
Node Version: Latest
Does anyone know how to get custom sound notifications to play on iOS? I have it working in Android by changing the name of my sound file to "chime" and placing it in the appropriate directory on my Cordova build. I think the problem with it not working (push notifications do work with default sound) the file name needs to be explicitly named. "chime.mp3". I've been looking at the PushNotification.js class in particular the method: send();
If the file needs to be explicitly named for iOS to recognize, how could we determine if the the client is an iOS device or Android to adjust the name of the file accordingly?
Also:
Does the (apn:{} object) in Rocket.Chat object pertain to APPLE'S (aps:{} object)?
The text was updated successfully, but these errors were encountered: