Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App crashes when i receive a VOIP notification when a call is cancelled. #100

Open
mayur-bhandari opened this issue Feb 9, 2023 · 4 comments

Comments

@mayur-bhandari
Copy link

The example code is used to reportNewIncomingCalls but in my case I am sending VOIP notifications when a call is not answered by the user for X seconds. When i receive this VOIP notification I do not want to reportIncomingCall using CallKit. What options do I have? I also read in iOS Documentation that it is necessary to registerNewIncoming call when i receive VOIP notification because if i don't then it will stop sending VOIP notifications of my app.

@awaisayub149
Copy link

Hey @mayur-bhandari did you get any solution for it?

@diegods-ferreira
Copy link

I'm facing this issue too. Whenever my app receives a VoIP Push Notification, it crashes

@wilkinsonj
Copy link

I'm also facing this issue. Did you guys ever resolve it?

@wilkinsonj
Copy link

Update for anyone else who runs into this, the payload needs to contain a data dictionary with 3 properties or it crashes:

const notificationPayload = {
  aps: {
    alert: {
      // add custom data here
    },
    sound: 'default',
    'content-available': 1 // Indicates a VoIP notification
  },
  type: 'voip',
  data: {
	handle: 'handle',
	callerName: 'Caller',
	uuid: uuid
  }
};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants