roam-ai / roam-android Goto Github PK
View Code? Open in Web Editor NEWAndroid Location SDK. High accuracy and battery efficient location SDK for Android by Roam.ai
Home Page: https://roam.ai
License: MIT License
Android Location SDK. High accuracy and battery efficient location SDK for Android by Roam.ai
Home Page: https://roam.ai
License: MIT License
Originally posted by ravikanth-tummala July 22, 2021
Currently
startSelfTracking()
does not need user sessions which are basically created using createUser()
or getUser()
methods.publishSave()
methods are being called, they will throw an error.createUser()
or getUser()
methods, we have use startTracking()
instead of startSelfTracking()
.Proposed
startTracking()
and startSelfTracking()
into a single method and name it as startTracking()
createUser()
or getUser()
not being called, the location update works locally and behaves similar to startSelfTracking()
createUser()
or getUser()
methods and startTracking()
will still continue to update locations locally unless until the publishSave()
or publishOnly()
methods are calledstopTracking()
and stopSelfTracking()
into a single method and name it as stopTracking()
I've cloned the repo, entered my SDK key and I'm able run the Example app and hit "Start tracking". My issue is that I don't see any location updates come in through the LocationReceiver
class, which is where I expected to see them. Here's my stacktrace when I opened the app, created a user, and hit "Start tracking":
2021-06-17 11:45:20.312 3885-3885/com.roam.example E/Roam UserId: 60cb98408ce7db281771541a
2021-06-17 11:45:20.629 3885-3885/com.roam.example E/GS402: Publish & Subscribe is stopped
2021-06-17 11:45:20.629 3885-3885/com.roam.example E/GS402: Publish & Subscribe is stopped
2021-06-17 11:45:22.107 3885-6166/com.roam.example I/Roam: MQTT client connected
2021-06-17 11:45:27.739 3885-3885/com.roam.example I/Roam: Tracking Started
Originally posted by ravikanth-tummala July 26, 2021
When
being a developer, during updateCurrentLocation()
method
I want to
send custom meta-data (ie. key value pairs) along with that specific location update
So that
we can tag the meta-data only to single location update and not for all the location update, when we add the same using publishSave()
method.
Things to notice
publishSave()
method already has meta-data added, this will be overwritten by the meta-data passed in updateCurrentLocation()
method and applied only for that specific location update and rest will continue to use the previous configurations passed in publishSave()
method.func didUpdateLocation(_ location: RoamLocation) {
//Receive user location along with meta-data
}
func didReceiveUserLocation(_ location: RoamLocationReceived) {
//Receive other users' location along with meta-data
}
```</div>
I've tried the Example app with Self tracking mode
But no location update is getting received
13:55:53.635 Roam com.example.roamexample I Tracking Started
13:55:53.698 GS402 com.example.roamexample E Data not found
13:55:53.700 Compatibi...Reporter com.example.roamexample D Compat change id reported: 160794467; UID 10167; state: ENABLED
13:55:53.703 Roam com.example.roamexample I Foreground service enabled successfully
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.