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.
Related
I want to have my push notifications play a sound when the iPhone is locked, but no sound when the iphone is unlocked.
Does anyone know how to accomplish this?
As far as I know, apple rejects applications with lock notifications listeners.
check link.
Can't find a clear answer on the internet.
I want to make an iOS App, which can play a sound on the Apple Watch, like you can play a sound on your iPhone from the Apple Watch (by swiping up from the watch face.)
Anyone knows if thats possible?
Cheers!
Matthijs
I can get push notifications on an Iphone device, but I cannot get them on apple watch,please advise.
On simulator notification test works, but on real device it doesn't work.
iOS will decide where best to send any notification. It will not just send to both devices.
If iOS thinks it is best to display it on your phone, then it will notify there or vice versa.
iOS automatically makes that decision using facts such as you are wearing the Watch, because if you're not wearing the Watch, there's no point in sending a notification there.
To test the receiving of notifications do the following:
Turn of the iPhone's screen.
Take on the Watch. It must be on your wrist.
The watch has the heart beat detector. Therefore, the watch will know if it is not wearn or not and only displays notifications if you wear it.
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.
I have two simulated apple devices. One is an iphone the other is simulated watch connected to the same phone.
Is there anyway to indicate or determine if a played sound is coming from the simulated iphone or the watch?
No. It is not possible to play sounds with WatchKit on the Apple Watch.
This is in Apple's Watchkit FAQ in their Developer Forums.
You could trigger a sound to play on the iPhone from a button press on the Watch but you can't play a sound directly from the Watch.
cant you just log an output when the sound is played to see which one its played from ?
You could try an audio hijack application to capture the audio of a particular app. "Audio Hijack" is one, there are many.
The accepted answer is no longer true. You can use WKInterfaceInlineMovie to play sound on the watch using a button tap on the watch, for example.
For a fuller explanation, see my response to this question:
Is there REALLY no way to play short sounds on Apple watch without a UI?