Add the following lines to your code which will register this device with the Cobrowse servers so you can connect to it. You could choose to do this on app startup, or when your users visits a support page in your application, or any other time.
Swift
Objective-C
importCobrowseIO
...
​
CobrowseIO.instance().license ="put your license key here"
CobrowseIO.instance().start()
@import CobrowseIO;
...
​
CobrowseIO.instance.license =@"put your license key here";
[CobrowseIO.instance start];
Registering on startup
If you would like your devices to register as soon as your app starts, we recommend doing this in your app delegate application:didFinishLaunchingWithOptions: method. For example:
This will associate sessions from your mobile app with your Cobrowse account.
Try it out
Once you have your app running in the iOS Simulator or on a physical device, navigate to https://cobrowse.io/dashboard to see your device listed. You can click the "Connect" button to initiate a Cobrowse session!