ConnectyCube / connectycube-js-sdk-releases

Releases materials for ConnectyCube JS SDK platform https://connectycube.com
9 stars 2 forks source link

VOIP Push Notification Issue #24

Closed Unixon-solutions closed 4 years ago

Unixon-solutions commented 4 years ago

No recipients. At least one user should be subscribed for 'apnsvoip' (through SDK or REST API)

I am getting above message when send notification to voip channel.

In app I have subscribed to "apns_voip" channel.

I think there is some mismatch in channel name.

Please fix this and let me know If there any changes required

Thanks.

DaveLomber commented 4 years ago

@Unixon-solutions please provide 2 code snippets:

thanks

Unixon-solutions commented 4 years ago

passing notification_channels: "apns_voip" in ConnectyCube.pushnotifications.subscriptions.create

subscription process seems correct because I can see on CC admin panel.

Screenshot 2020-05-12 at 4 45 35 PM

and sending notification from CC admin panel

Screenshot 2020-05-12 at 4 44 09 PM

DaveLomber commented 4 years ago

@Unixon-solutions just to make sure - the environment in both cases are production(live)?

I see it's live for Admin panel

Is it also a production one for ConnectyCube.pushnotifications.subscriptions.create ?

Unixon-solutions commented 4 years ago

I got VOIP notification for development build. but app getting crash because data is null.

Can you help me why getting null data ?

DaveLomber commented 4 years ago

ok then if you subscribe for development but send a push to live - it will not work

Same env should be used

Re crash - please provide more info, what exactly is crashing, a stacktrace would be helpful

Unixon-solutions commented 4 years ago

I have handled crash issue, it was due to null data. I was sending voip push from ConnectyCube admin panel which was not sending data as app was receiving that's why it was getting crash.

DaveLomber commented 4 years ago

@Unixon-solutions yes you can do it

Please check this link https://developers.connectycube.com/js/push-notifications?id=voip-push-notifications