Platform

Platform

  • Getting Started
  • API

›React Native SDK

Getting Started

  • Create Your App

Quick Starts

  • 555 Samples

Mobile SDK (v1.0)

  • Overview
  • IOS SDK

    • Getting started
    • Installation Guide
    • How to do user authentication
    • How to subscribe for notifications
    • How to initiate or accept PSTN call
    • How to initiate or accept video call
    • How to set log level for SDK
    • Release Notes

    Android SDK

    • Getting started
    • Installation Guide
    • How to do user authentication
    • How to subscribe for notifications
    • How to initiate or accept PSTN call
    • How to initiate or accept video call
    • How to set log level for SDK
    • Release Notes

Mobile SDK (v2.0)

  • Overview
  • IOS SDK

    • Getting started
    • Installation Guide
    • How to do user authentication
    • How to subscribe for notifications
    • How to initiate or accept PSTN call
    • How to initiate or accept VIDEO call
    • How to initiate or join ANONYMOUS VIDEO call
    • Release Notes
    • Reference code - How to initiate or accept PSTN Call
    • Reference code - How to initiate or accept Video Call
    • Reference code - How to initiate or join Anonymous Video Call

    Android SDK

    • Getting started
    • Installation Guide
    • How to do user authentication
    • How to subscribe for notifications
    • How to initiate or accept PSTN call
    • How to intiate or accept Video Call
    • How to intiate or accept ANONYMOUS VIDEO Call
    • Release Notes
    • Reference code - How to initiate or accept PSTN Call
    • Reference code - How to initiate or accept Video Call
    • Reference code - How to initiate or join Anonymous Video Call

    React Native SDK

    • Getting started
    • Installation Guide
    • How to do user authentication
    • How to subscribe for notifications
    • How to initiate or accept PSTN call
    • Release Notes

WebRTC JS SDK

  • Overview
  • Getting Started
  • How to do user authentication
  • How to subscribe for notifications
  • How to initialize SDK
  • How to initiate or accept PSTN call
  • How to initiate or accept video call
  • How to create a screen share session
  • Release Notes

Notification Service

SDK provide APIs to subscribe for push notification using APNS,FCM or XMPP notification over websocket using SDK callback. Before invoking notification APIs, make sure you have set the mandatory configuration as mentioned here.

XMPP Notification

Both notify and cancel XMPP notifications by default will be received through SDK onNotification callback without any need for subscription.

APNS Notification

Below APIs are for subscribing/unsubscribing the PUSH notification to notify new incoming call. All cancel notification by default will be received through SDK onNotification callback without any need for subscription.

Create Subscriptions

This API will register the subscriber for the PUSH notification and create subscription for topic provided. createSubscriptions API return a promise. If subscription is successful,Response will have an array of objects which contains subscriberId,protocol and array of topics,for each unique subscriberID created. Otherwise error JSON with code and reason for error.

var subscriptionArray = [];
var subscriptionobj = {"protocol" : "<Protocoltype>",// protocol for subcription of notificiation i.e., apns or fcm
"deviceToken" : "<deviceToken>",// required when protocol is apns or fcm
"apntopic" : "\(Bundle.main.bundleIdentifier!).voip", // required when protocol is apns
"topic" : "federation/pstn/<Routing Id>"};
subscriptionArray.push(subscriptionobj);
var appDomain = "uc-prod.comcast.com" // app domain
Rtc555Ntm.createSubscriptions(subscriptionArray,appDomain)
    .then(function (response) {
      for (var i in response){
        
          console.log("subscription id ::",response[i].subscriberId);
          console.log("protocol ::",response[i].protocol);
          console.log("topics ::",response[i].topics);
      }
    // handle success
  })
  .catch(function (error) {
    // handle error
    console.log(error.code);
    console.log(error.reason);
  })
Parameters
PropertyTypeDescription
subscriptionsarrayContains array of subscription object. Subscription contains protocol,Device token(in case of apns and fcm), apntopic(in case of apns protocol), topic
appDomainstringapplication domain

Below is the subscription object need to be populated:

PropertyTypeDescription
protocolstringvalue like "fcm" or "apns"
deviceTokenstringdevice token in case of apns and fcm protocol
apnTopicstringcontains topic appended to application bundle identifier
topicstringpass "federation/pstn/" for pstn or "/video/" for video, based on the type of subscription required

Delete Subscription

Users need to pass subscriberId, topic, app domain for deleting subscription. deleteSubscription API return a promise. If subscription is deleted successfully,topic and subscriberId of deleted subscription will be returned as response, Otherwise error JSON with code and reason for error.

Rtc555Ntm.deleteSubscription(subscriberId, topic,appDomain)
    .then(function (response) {
    // handle success
    console.log(response.topic);
    console.log(response.subscriberId);
  })
  .catch(function (error) {
    // handle error
    console.log(error.code);
    console.log(error.reason);
  })
Parameters
PropertyTypeDescription
subscriberIdstringsubscriber id
topicstringvalue like "pstn or "video"
appDomainstringapplication domain

Delete All Subscriptions

Users need to pass subscriberId for deleting all subscription. deleteAllSubscriptions API return a promise. If subscriptions is deleted successfully,deleted subscriberId will be returned as response
Otherwise error JSON with code and reason for error.

Rtc555Ntm.deleteAllSubscriptions(subscriberId)
    .then(function (subscriberId) {
    // handle success
    console.log(subscriberId);
  })
  .catch(function (error) {
    // handle error
    console.log(error.code);
    console.log(error.reason);
  });
Parameters
PropertyTypeDescription
subscriberIdstringsubscriber id
← How to do user authenticationHow to initiate or accept PSTN call →
  • XMPP Notification
  • APNS Notification
    • Create Subscriptions
    • Delete Subscription
    • Delete All Subscriptions
Docs
Getting StartedGuidesAPI Reference
More
BlogGitHub
555 Platform
Copyright © 2024 555 Platform ™
555docs-v0.0.94