Hi.
The Android app is not updating the location string, but it can be done.
You can add this to the updateLocation method on MainActivity.java
Geocoder geocoder = new Geocoder(this, Locale.getDefault());
try {
List<Address> addresses =
geocoder.getFromLocation(location.getLatitude(),
location.getLongitude(), 1);
saleAgent.setLocation(addresses.get(0).getLocality());
} catch (IOException e) {
}
On Thu, Mar 9, 2017 at 5:40 PM, columfoskin <columfoskin(a)gmail.com> wrote:
Hey all,
I am working on building a node.js version of the backend aerodoc demo
system and I am wondering if anybody knows if the location string for a
sales agent is updated at all?
I know that the lat/longs are updated when the agent signs into the client
android app.
I am trying to replicate functionality and I think that the agents location
string is never updated and is just hardcoded on startup.
Does anybody know if this is the case?
Thanks,
Colum.
--
View this message in context:
http://aerogear-users.1116366.
n5.nabble.com/Aerodoc-sales-agent-location-string-updated-tp1063.html
Sent from the aerogear-users mailing list archive at
Nabble.com.
_______________________________________________
Aerogear-users mailing list
Aerogear-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/aerogear-users