Map widget won't show when build in android apk

This thread was migrated from an old forum. It may contain information that are no longer valid. For further assistance, please post a new question or open a support ticket from the Customer Support portal.

Hi guys, i try to add map widget on my project,

add google map api key to my project setting

also i add manifest properties

and this is my code, where i call getPosition() onMapLoaded

I run this project to visuallizer on my android and work well, but when i build to android apk, map widget won't show, am i missing something ?

Hi,

The map widget key needs to be generated based on a domain name. The key generated for a single domain can be used for all sub-domains, URLs on hosts in those domains, and all ports on those hosts. We request you to follow the below procedure and try to generate a map key to work in all the devices.

http://docs.kony.com/konylibrary/visualizer/visualizer_user_guide/Default.htm#Generating_Map_Keys.htm

http://docs.kony.com/konylibrary/visualizer/visualizer_user_guide/Default.htm#Generating_Map_Keys.htm

We are checking the sample application provided and update you with the solution.

Thank You,

Hi,

With the provided sample app we observed "Ensure that the "Google Maps Android API v2" is enabled" message in the logs,

Please refer the below doc to generate a map key

http://docs.kony.com/konylibrary/visualizer/visualizer_user_guide/Default.htm#Generating_Map_Keys.htm

To use the latest Google Play libraries (Rev 13 and above which supports only Android v2.3 and above devices), do the following:

  1. In Kony Visualizer, On the Project menu, click Settings.
  2. Click the Native tab, and then click the Android sub-tab.
  3. Scroll down in the dialog box, and under Manifest Properties, click the Tags tab.
  4. In the Child tag entries under <application> tag text box, add the following tag:
  5. <meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" />.

With the above changes Map widget is loading in the device.

Hi,

Hope the above sample app resolves your issue, If yes please Make sure you click the [Select as Best] to close out this post.

Same here google map is not loading when build as a native app.