Is it possible to work with collaboration from native app outside VANTIQ client

Our goal is to provide good UI/UX for enterprise customers.

To achieve this, we take the approach of fully customizing the native app.

We find VANTIQ’s collaboration feature very useful as a backend and want to leverage it.

I’ve checked the iOS-SDK repository and found that I can call the RESTAPI, but I’m not sure if I can call events in the native app to collaboration.

Is it possible to interact the collaboration feature from the native app?

Posted: November 17, 2021 at 1:51 am
Replies: 2
Nov 17, 2021

Glad to hear you like Vantiq Collaborations!

The short answer is that yes, it is possible to interact with a Collaboration from another application.  There are a few ways to do this.

1. Vantiq Mobile App – our Mobile App, which works on all major mobile platforms, is already designed to interact with Vantiq cloud servers, showing Client interfaces and interacting with Collaborations.  You can either use this App as is or even make it your own.

2. The settable attributes of Collaboration Tasks are here in the documentation.

3. Collaborations send to mobile apps via push notifications.  Use the Notification pattern for this, with a blank client.

4. Use of the Location Tracking pattern: Mimic what the mobile application does by publishing the proper formatted json payload to /ars_collaboration/location/mc

It will look like this:

{

“location”: {

“type”: “Point”,

“coordinates”: [

-72.36734865324113,

41.421741273683575

]

},

“altitudeMeters”: 70.11668844855397,

“horizontalAccuracyMeters”: 23.91835872605186,

“speedMetersPerSecond”: 0.3133402693271637,

“lastActive”: “2020-03-20T14:30:15+0000”,

“bearingDegrees”: 204.1563082266135,

“username”: [

“3482a1c4-bfb1-4dec-acf0-163e29b4f4a3”

],

“timestamp”: “2020-03-20T10:30:15-04:00”,

“verticalAccuracyMeters”: 11.576294397083455,

“collaborationId”:”<collabid>”

}

5. Mobile App sends data into Collaboration: Use a custom event in the Collaboration and set its rule to listen to topic, insert, etc..   The mobile application must include the Collaboration id so that it knows the correct Collaboration context

6. The mobile app can subscribe to a topic that is sent from the Collaboration.  See the SDK documentation for more detail on this.

7. For the mobile app to get data from the collaboration, send REST/API queries from the SDK.  The Resource Reference documentation is also helpful here.

Hopefully, this is enough to get you started!  (All links above are from dev.vantiq.com)

Nov 17, 2021
Posted by zaritsu cho

Thank you for your answer.

I understand that it is possible to implement with a UI other than the vantiq mobile app.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
© Vantiq 2024 All rights reserved  •  Vantiq Corporation’s Privacy Policy and Cookie Policy