infoWindow Google Maps

Hi, i have this code:

var marker = [];
marker = new google.maps.Marker({
position: markerLatLng,
map: map,
icon: img_icon
});
gmarkers.push(marker);
var infowindow = new google.maps.InfoWindow();
google.maps.event.addListener(marker, 'click', function() {

localStorage.setItem("Destino", originLocLat + ',' + originLocLong) + localStorage.setItem("Origen",currentLocLat + ',' + currentLocLng) + localStorage.setItem("i_name",Vendor_name);
//Set content for infowindow.
infowindow.setContent('Nombre sucursal: ' + Vendor_name);
//Open infowindow.
infowindow.open(map, marker);
});

When I test this in the Appery Test, when I click the marker in the Google Map it displays the message correctly. But when I download a version of the app and test it in my phone, when I click the marker it doesn't shows me the message. Does anyone knows why and how can I solve this?

Thanks
1 person has
this question
+1
Reply