ios - How I keep iPhone continuous vibrating when receives remote notification? -


i want keep iphone app vibrating when receives remote notification app closed or iphone closed.

i can play special sound when receives remote notification, said vibrate sound, use "ksystemsoundid_vibrate" , still don't know how use it.

the server can post apns this:

{"aps":{     "alert":"receive jane's call",     "badge":1,     "sound":"opening.m4r"} } 

but want know how add constant 'ksystemsoundid_vibrate' apns, iphone can play sound , vibrate continuously.


Comments

Popular posts from this blog

How to check data type in C++? -

javascript - Is getTimezoneOffset() stable during daylight saving transition? -

sql server - SQL Query returns one result, does not return 0 or NULL result -