Push notification sound doesn't work on iOS8 - ios

Hi trying to fix a issue discovered other, the device is not playing the notification sound if it is locked. If device is unlocked the sound is played this issue happens only on iOS 8.x.
I test other apps like gmail and the same no notification sound when the device is locked
The sound is enabled from the notification center
The register for remote notification is done correctly like this
The only issue is that when the device is locked there is no notification sound even the lock screen is not lighting up like on previous versions.
Any solution to fix this ?
UPDATE:
After updating the device to iOS 8.3 seams that all iOS bugs that i notice before now are fixed , and the notification sound too, but I still what to know if there is some solution for this issue, thx.

Did you make the same noob mistake as me ? :D
I had the Do Not Disturb mode turned on and it prevented the device lock screen from waking and no sound played.
If you did, turn off Do No Disturb.
Note: the Do Not Disturb toggle can be accessed by pulling up from the bottom of the iPhone screen. It's the crescent moon icon that's next to the rotation lock button.

Along a similar vein to #Zhang, I wasn't getting any sounds because I had sound volume turned down all the way in Settings > Sounds. There is a "Ringers and Alerts" volume slider (top of the screen, in iOS 8.1 at least) that I had all the way down, and after increasing this volume slider I was able to hear the alert sounds.

Related

iOS - Show View when phone is locked

I'm building an ios app with an alarm feature. I would like to show a view when phone is locked. I want to look exactly like on iOS alarm. If you're an iPhone user try to alarm and locked your phone you will get what i'm talking about. Is it possible? If possible how?
Thanks in advance.
iOS doesn't provide apps that kind of access to the lock screen (or any screen not in your app), so it's impossible to make it exactly like the iOS native alarm. The closest you can get is sending notifications to simulate an alarm, which are visible on the lock screen

Launch app using shake gesture

Is there a way to launch an app by shaking the iPhone?
I want my app to launch when the user shakes their iPhone (a certain number of shakes).
I believe thats not possible.
Apple can deal with this on its own end by OS.
What if the device gets shaken by accident? You've then got false alarms to deal with.

iPhone stops playing audio in the background

Our iPhone app is configured to play audio in the background, and most of the time it works well and the audio is playing.
But we had several reports from users that while the app is in the background and it IS playing audio, suddenly in the middle of playback it stops.
It seems to happen usually when the user is using apps like Facebook or WhatsApp heavily, sending and receiving many messages.
When the user returns to the app, it seems to start from the launch screen, as if it was closed, not just the audio stopped.
There seems to be no crash logs on the users phones when this happens.
What can cause this? What can we do to prevent this or what can we do to investigate when this happens? Can it be prevented entirely?
apple fixed this already.
Before the release of iOS 10.0.2, the only way to fix the bug was to unplug the EarPods and then plug them back in. Not all devices were affected, but it looks like Apple finally found the fix it promised earlier this week.
Here is an article: http://www.cultofmac.com/446417/apple-fixes-iphone-audio-issues-ios-update/

No Vibrate Only want Sound in Pushnotification (ios)?

I know the ways for,
1.how to playing sound and vibrating(both) while push notification comes from server to iPhone device
2.Only playing vibrate with no sound.
but I did not find any way to "play only sound and stop vibrating when new push notification comes" on device.
Please suggest me both way.
1) iPhone mode in vibrate.
2) iPhone mode in General.
My Xcode is version 7.2.
I set this dictionary in APN Tester than get sound and vibrate=>
{"aps":{"alert":"Hello from APNs Tester.","badge":"1","sound":"default"}}
But, I want only sound no vibrate.
I think this question is duplicate . but I can't get proper solution.
Thankx in advance.

App Interruption - Siri Fails To Hear Human Voice

In my team's iOS app we have a bug when Siri is invoked while our app is running. Siri pops up and the waveform is shown very briefly and appears not to detect one's voice as the waveform remains very flat. Quickly thereafter it begins to list the things you can ask Siri.
We are using Xcode 6.3, tested on an iPad Mini with iOS 8.3 as well as an iPhone 5 with iOS 8.3.
The app never uses the microphone or queries any of the device audio inputs so I can't see this problem attributed to our app using the microphone directly. It does play looping ambient music and has sound effects.
Is there anything specific we should be calling an an interruption to ensure that Siri will work properly? Has anyone experienced similar issues?
This is most likely not related to your app. The iOS SDK doesn't provide a Siri API that could lead to this kind of events.
You may try to pause any ambient music/sounds effects whenever the app goes in background. (in AppDelegate.m)

Resources