Offline Map without Internet

Discussions about creating CAPI applications to run on Android devices
Post Reply
disala
Posts: 9
Joined: August 27th, 2016, 9:47 pm

Offline Map without Internet

Post 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
josh
Posts: 2399
Joined: May 5th, 2014, 12:49 pm
Location: Washington DC

Re: Offline Map without Internet

Post 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
Post Reply