question

andru avatar image
andru asked Jacob Abrams edited

I need to get device location for clover flex in my android app.

I tried location manager for getting location, but it returns null. The same code works fine in other android devices. Then , I tried fusedlocation provider, but it won't work in clover flex , since flex doesn't contain google play services. How could I access location in clover flex? Please help me.
Clover Flex
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

Jacob Abrams avatar image
Jacob Abrams answered Jacob Abrams edited
It is likely that you are not outdoors and there is no location available since no GPS fix has ever been made. The location services on Clover Flex unfortunately require an extremely strong direct signal at this time which usually means they only function when the device is outdoors in a fairly unobstructed location (no tall buildings).

Try going outdoors and run the code that attempts to obtain a location in a loop for several minutes to see if it ever obtains a location.
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community