Google maps no longer work on iPhone Phonagap App - javascript

I have developed a phonegap application in GWT that uses the GWT Api for google maps.
Since recently for iOs5 and iOs6 iphones, the map is no longer displayed, instead I get this message
we are sorry but we don't have maps at this zoom level for this region
What could be the cause?
I've heard that google-maps are no longer installed in apple devices, but I think that this is irrelevant.

I rebuilt the iPhone app and now it works

Counter-offensive from Google?
You don't allow to install our app on your phones, we don't allow your phones to use our API or our site...

Related

White screen instead of google map displays on some android devices

I'm working on an app built using phonegap build which uses the google maps api (not plugin). The map has been working fine until recently where it shows as a blank white screen on some Android phones, mostly those running Android 9. There are no map controls showing, and the rest of the app works fine. A test device using Android 5.1.1 was working fine, as well as on iOS.
After debugging a phone with the issue, one error showed that 'google was not defined'.
In the index.html file, I tried moving the line that imports the google maps api script above the javascript that uses google maps, specifying the version of google maps to a previous one in case a recent change broke it somehow, and loading it using async and not but none of these made a difference.
The issue was because of Google Play's new requirement to include the target SDK version for the latest version of Android - in config.xml I had recently added:
<preference name="android-targetSdkVersion" value="28" />
and google maps javascript was being pulled in with http rather than https - changed in index.html to:
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=XXXXXXXXXX&region=GB&libraries=places"></script>
and this resolved the white screen showing on some Android devices.

Launch map app on mobile device with multiple destinations

I'm looking to launch the native map app on iOS, Android and Windows Phone devices with multiple destinations shown in the directions.
Sending basic directions works fine using Google and Apple maps daddr but from what I can there's no way to specify multiple destinations using the map link (example below).
https://www.google.com/maps?daddr=LAT,LONG
I've also tried using a URL to load the desktop version of Google maps (which asks if the user wants to open the app anyway) but multiple destinations doesn't seem to be supported with Apple maps. The code below does work on Android devices but not iOS and Window Phone.
https://www.google.co.uk/maps/dir/Current+Location/LAT,LONG,LAT,LONG
Is there any way to make this happen on iOS, Android and Window Phone devices?
Edit: I need to native map apps to launch as this seems to be the only way to show the navigation (sat-nav like) maps.
searched the web, looks like its not supported on iOS
http://www.macworld.com/article/2687984/how-to-create-multi-destination-map-routes-on-your-iphone.html

URL conventions for Maps on Windows Phone 7

What is the best practice for opening a map from the mobile internet explorer on windows phone 7? On BlackBerry you use a JavaScript method and on Android/iOS you simply link to a google maps URL.
I am planning to integrate the different ways of opening maps into my mobile geo javascript library and don't have a windows phone device.
http://code.google.com/p/geo-location-javascript/
Thanks,
Stan Wiechers
Use the maps: protocol for WP7. I haven't found any documentation but this works.
There currently isn't a built in way to link to the maps application from within a webpage on a device (or emulator). (Nor is it possible from other apps either.)
I'd recommend linking directly to a mobile Bing page. Such as the following which searches / shows a map for "London":
http://m.bing.com/search/search.aspx?A=mapdetails&L=London

JavaScript Google Maps API and web application on IPhone

I have developed a web application for mobile phones that uses JavaScript Google API. It works fine on any Android phone however on IPhone the map is not "dragable" - I can't move the map (I click on a map and try to move it but it stays the same as if I was trying to move a static image). I found some information pointing out that it is a bug on the IPhone side. If it is true - is there any workaround?
The application that I developed is used as a web application using JavaScript Google Maps API V3, not the IPhone application.
Thanks for any suggestions.
Best Regards,
sass.
Are you using click or touch events?
The iPhone won't see clicks.
What is your Device ? All devices don't respond the same way ^^
(so, did you try on latest devices ?)
By the way, you could take a look at http://www.jqtouch.com/ library ^^

How do I detect user's location from a webpage opened in the Android browser?

Visiting www.google.com on the Android browser (or even with an android spoofed user-agent), presents the option to "Share Location". When clicked, it uses the GPS/Cell phone towers to figure out the location. I tried the google.loader.clientLocation but that only works using the IP address.
Is there a method to tap into the Android OS and access GPS data from a regular web application (and not an Android application) similar to the way Google does?
[Perhaps Google uses the Google Gears app on Android to access this data.]
Thanks!
This is an HTML5 API, and it'll work on Webkit-derivatives, Chrome, and Firefox 3.5 (for now).
http://dev.w3.org/geo/api/spec-source.html
http://merged.ca/iphone/html5-geolocation
I was trying that recently and found this forum posting interesting. I did not find a real good way to do this either and it doesn't look like we can do that without writing our own app which opens a browser instance.
http://androidforums.com/support/8868-how-get-gps-coordinates-browser.html
Here is also a nice example: http://klauskjeldsen.dk/w3c-geolocation-api-html5/

Categories

Resources