English 中文(简体)
有声但无振动和反振动的通知
原标题:notification with sound but without vibration and conversely
  • How can i use local notification with sound but without vibration?
  • And how can i use it conversely, with vibration but without sound?

edit:
while i read, i found one solution for vibration without sound:
(not appropriate to localnotifications in my case)
a) AudioServicesPlayAlertSound(kSystemSoundID_Vibrate);
b) AudioServicesPlaySystemSound(kSystemSoundID_Vibrate);
and as variant play silent sound, that will give vibration without sound effect.

我无法使用声音而不振动(我们谈论的是本地通知)。对不对?

最佳回答

我如何使用本地通知 声音但没有振动?

如果通知中指定了声音(取决于用户的设置,他们可能已经关闭了振动),就会触发振动。 我认为目前没有任何方法可以让音效通知发生振动。

我怎样才能用它来反转, 振动,但没有声音?

您的猜测是正确的, 此选项很容易使用静音文件实现( 确保不到30秒, 通知API所施加的限制 ) 。

问题回答

暂无回答




相关问题
Code sign Error

I have created a new iPhone application.I have two mach machines. I have created the certificate for running application in iPhone in one mac. Can I use the other mac for running the application in ...

ABPersonViewController Usage for displaying contact

Created a View based Project and added a contact to the AddressBook using ABAddressBookRef,ABRecordRef now i wanted to display the added contact ABPersonViewController is the method but how to use in ...

将音频Clips从Peter改为服务器

我不禁要问,那里是否有任何实例表明从Peit向服务器发送音响。 I m不关心电话或SIP风格的解决办法,只是一个简单的袖珍流程......

• 如何将搜查线重新定位?

我正试图把图像放在搜索条左边。 但是,问题始于这里,搜索条线不能重新布署。

热门标签