25
votes

I am currently running iOS 10 beta 8 with Xcode 8.0 beta 6 and the custom sound does not play when I receive a push notification with the correct payload.

I have verified the payload and it is in the correct format per the apple documentation:

{
    "aps" : {
        "alert" : "You got your emails.",
        "badge" : 9,
        "sound" : "bingbong.aiff"
    },
    "acme1" : "bar",
    "acme2" : 42
}

When I send the same payload to the same build on iOS9 the custom sound plays properly.

Does anyone know if there are any other changes in iOS 10 that I need to make?

5
I've got the very same problem...anyone?animal_chin
try to put content-available 0 maybe in iOS 10 have some bug and send content-available = 1 by default because some changes apply in push with iOS 10, or change the sound for other "chime.aiff"Jose Pose S
Investing in this post. I've Xcode 8, and I'm seeing this too. Skype and other older apps are fine.Adil Soomro
You need only reboot iPhone! No problem after with both debug build and AppStore appmalex
@malex did you see this problem on the AppStore release before rebooting the phone? I'm waiting to release a new build of my app, but I'm experiencing this issue with the Test Flight build. Rebooting the phone does resolve the issue but I'm not satisfied with that as a solution.binncheol

5 Answers

15
votes

This problem seems to only affect apps installed via Xcode. The issue persists even if you later update the app from a different source.

The solution is to completely remove the app, and reinstall it from TestFlight or the App Store.

In effect, this bug should not affect your end users.

Edit 2016-10-15:

Unfortunately it seems that I was mistaken. This appears to be a bug on iOS 10 that can, in fact, affect App Store apps also. If it is of any consolation, apps such as Facebook and WhatsApp are affected too. The solution is apparently to force restart your phone, but unfortunately there doesn't seem to be much we can do about it as developers.

Apple Fixed Issue:

Based on this comment, Apple has seemed to fix the issue in iOS 10.2

4
votes

Try installing your app using Test Flight and after implementing initial process to update device token just restart your device.

You'll get what you have been looking for.

Credit goes to - binncheol

3
votes

Having our user restart their device is correcting the issue for us.

This is an issue for us regardless of how the app was installed (TestFlight or from the app store).

2
votes

There is definitely an iOS10 bug which still persists as of 10.0.2. It affects many apps including popular ones such as Whatsapp and Messenger. The workaround is just to power cycle the device, after which point the notification sounds are correct. It doesn't seem to matter how the app is installed.

I can't find any documentation of this from Apple (go figure) but there is more info here: http://thetechbeard.com/how-to-fix-notification-sound-problem-in-ios-10/.

As reported here lots of other people are having this problem. Hopefully Apple fixes it soon.

0
votes

I uninstalled the app, turned off the real device, reinstall the app, and then the custom notification sound started working. It didn't work before I restarted my device XD