Some test text!
iOS / Guides / Connect to server
The iOS SDK includes a realtime collaboration sample app with the .dmg download (found in Samples/Other/Collaboration
). It includes support for two different back-end servers:
This guide will step you through running the sample.
The Apryse demonstration server uses WebSockets to communicate annotation changes and messages between the client and the server. The WebSocket API is provided by SocketRocket, and is integrated via CocoaPods.
Collaboration.xcworkspace
, and run the sample. The device will show the PDF viewer.Now, when you create annotations on the device or the computer's browser, the annotation will show up on the other.
Firebase's Realtime Database is a NoSQL database. Accessing firebase requires Google's Firebase SDK, which is integrated via Cocoapods:
Collaboration.xcworkspace
.-(void)viewDidAppear:(BOOL)animated
, comment out the line of code under "OPTION 1" (which uses the Apryse demonstration server), and uncomment the line under "OPTION 2" (which uses Firebase).Now, when you create annotations on the device or the computer's browser, the annotation will show up on the other.
The firebase sample can be configured to connect to your own Firebase instance. To do this, follow these instructions:
Trial setup questions? Ask experts on Discord
Need other help? Contact Support
Pricing or product questions? Contact Sales