I generated 2 API keys in API console, one for debug with debug SHA1(no restriction) and one for production with release keystore SHA1(with Android Apps Restriction).
I have both the API key seperately in debug..\google_maps_api.xml and release..\google_maps_api.xml and added the metadata in Manifest above the closing application tag. I generated a signed APK and the maps loads fine. My Manifest looks like this
<application
<activity
android:name=".MainActivity"
android:screenOrientation="portrait"
android:windowSoftInputMode="stateHidden|adjustResize" />
<meta-data
android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version" />
<activity
android:name=".MapsActivity"
android:label="@string/title_activity_maps"
android:screenOrientation="portrait" />
<meta-data
android:name="com.google.android.geo.API_KEY"
android:value="@string/google_maps_key" />
</application>
I generated the signed APK using signature servions V1(Jar Signature) and V2(Full APK Signature). After Publishing in Playstore the map is not loading. Can anyone please guide me on this?.