Initiate sessions with push
For use with Android, iOS, React Native, Flutter, and .NET Mobile SDKs only.
Last updated
Was this helpful?
For use with Android, iOS, React Native, Flutter, and .NET Mobile SDKs only.
Last updated
Was this helpful?
By default, Cobrowse Native SDKs for Android and iOS open a socket to handle incoming session requests.
You may optionally send new session requests over the native push channel. Cobrowse supports this configuration out of box using Firebase Cloud Messaging (FCM).
Setup your Firebase account:
Create an account for .
Create a new project from your .
In your Project settings, add entries for your Android and iOS apps.
For iOS, you will need generate an APNs Authentication Key (recommended) or APNs Certificate from . You may then upload it under Project Settings -> Cloud Messaging.
Please generate a Firebase Private Key file from Project Settings -> Service Accounts, download it and enter its contents into your .
A few changes to native code as described below.
You first need to registerForRemoteNotificataions()
at a location that is right for your application.
Once requested the didRegisterForRemoteNotificationsWithDeviceToken
delegate method will be called. You must then pass this token to Cobrowse using the CobrowseIO.setDeviceToken
method.
This device will now be associated associate with the push token winth the Cobrowse dashboard.
You must first add Firebase Cloud Messaging (FCM) to your app. Please see FCM documentation at .
You must first add Firebase Cloud Messaging (FCM) to your app. Please see FCM documentation at .
You must first add Firebase Cloud Messaging (FCM) to your app. Please see FCM documentation at .