Closed tejas456sawant closed 2 years ago
Thanks @tejas456sawant for your contribution. We have updated the Readme.md with more clear content.
Looping JOE
On Sat, 9 Apr 2022 at 22:26, Tejas Sawant @.***> wrote:
Hello,
I am adding roam.ai to my react native project, but it shows location hits as 0.
[image: image.png]
Also, location listers are not printing anything and if I hit the insights API, it shows the following response.
[image: image.png]
My Code -
import Roam from "roam-reactnative";
Roam.checkLocationPermission((status: any) => { if (status === "DENIED") { Roam.requestLocationPermission(); } });
Roam.checkLocationServices((status: any) => { if (status === "DENIED") { Roam.requestLocationServices(); } });
Roam.checkBackgroundLocationPermission((status: any) => { if (status === "DENIED") { Roam.requestBackgroundLocationPermission(); } });
Roam.startTracking("PASSIVE");
Roam.updateLocationWhenStationary(10);
Roam.allowMockLocation(true);
Roam.createUser( "TEST_USER", (success: any) => { console.log("User created: ", success); }, (error: any) => { console.log("User creation error: ", error); }, );
Roam.startListener("location", (location) => { console.log("Location", location); });
On Mon, Apr 4, 2022 at 10:46 AM Jothi Priyadharshan < @.***> wrote:
Closed #11 https://github.com/roam-ai/roam-reactnative/pull/11.
— Reply to this email directly, view it on GitHub https://github.com/roam-ai/roam-reactnative/pull/11#event-6359897699, or unsubscribe < https://github.com/notifications/unsubscribe-auth/AJDSQZX4B7XGJXZXEQ2LI43VDJ3MDANCNFSM5SLQTN6Q
. You are receiving this because you were mentioned.Message ID: @.***>
— Reply to this email directly, view it on GitHub https://github.com/roam-ai/roam-reactnative/pull/11#issuecomment-1094119363, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA7RPNPEEKAWFT6SPRNNXFDVEHRXBANCNFSM5SLQTN6Q . You are receiving this because you commented.Message ID: @.***>
Constants need to be - Roam.startTracking(Roam.TrackingMode.ACTIVE); Roam.startTracking(Roam.TrackingMode.BALANCED); Roam.startTracking(Roam.TrackingMode.PASSIVE);