Page 1 of 1

Offline Map without Internet

Posted: January 16th, 2020, 7:27 pm
by disala
Dear CSPro team

I tired offline maps with some devices and operations were perfect.

I deployed same application to a new device which does not have internet connection then there I faced map was not rendering.

I realized there were no GPS on, No WiFi or a DATA sim to connect internet.

I experimented to view the map with GPS and Wifi on, Map renders perfectly. After that point Map renders continuously.

To go deep I cleared the Cache and Storage for the CSEntry app of the device, there I met the same problem

I feel offline map waiting for internet connection for the first time.

Please guide me

Disala

Re: Offline Map without Internet

Posted: January 16th, 2020, 7:56 pm
by josh
The first time you run CSEntry mapping on a device it needs to connect to the internet to validate the API key for Google Maps SDK. Once it has validated the key that first time it gets saved and then the offline maps will work without any internet connection from then on. If you clear the storage for CSEntry that probably deletes the saved key validation so the device would need connect to the internet again before it will display any maps.

The need to connect to the internet to validate the API key is a known limitation of the Maps SDK for Android. See https://issuetracker.google.com/u/2/issues/35823181