• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Looking for some help with iOS push notifications...

purbeast0

No Lifer
I'm working on an app that has a feature to make phone or video calls. When you do this with Hangouts or Facebook Messanger app, there is a push notification that gets sent to the recipient. However this notification is a little different in 2 aspects.

  1. It plays a ringing sound in a loop (whether it's just 1 long sound clip vs. a short one in loop, I am not technically sure).
  2. The notification stays on the recipients screen the entire duration of the initiator making the call, until they either hang up or the recipient taps on it.
I have been searching google and I am unable to find any information on how this is done. Does anyone know how Google or Facebook has implemented this type of notification feature?

P.S. - I copied this from my stackoverflow post, so if you search google you may see it lol.

EDIT:

Figured it out. The length of the sound file determines how long the notification will stay up, so if I make a 30 second sound file (max length of notifications staying up) then it will stay up the whole time the sound is playing while it's ringing. So I'll just have to make a 30 second ringing sound file that just loops the ring sound and use that for the notification sound.
 
Last edited:
Back
Top