Map Freezes on iOS 7 with Google Maps SDK 1.4 - google-maps-sdk-ios

I've been seeing a strange issue using Google Maps SDK 1.4 (and 1.2... probably others) on iOS 7 beta 4 and 5.
After a brief time of zooming and panning on a device running iOS 7 beta 4 or 5, my GMSMapView will stop responding to gestures. It wont zoom or pan or do anything when you touch it.
When this happens, every other interface element present on screen will remain functional. Programmatically removing and adding the map from the view will re-enable the map. Rotating the device does not affect the map.
It happens only on a device running the iOS 7 beta and not on a simulator running iOS 7. Running the same app on an iOS 5.1 and 6.x device will not reproduce this issue.
Has anyone else had an issue like this? I am not a seasoned iOS developer, so I could be missing something simple.
Thanks a bunch!

GMSMapView(UIViewController) on UINavigationController.
Insert this code in viewDidLoad method.
-(void)viewDidLoad {
[super viewDidLoad];
// iOS7 add this code
if ([self.navigationController respondsToSelector:#selector(interactivePopGestureRecognizer)]) {
self.navigationController.interactivePopGestureRecognizer.enabled = NO;
}
.... your codes
}

Download the latest version of Google Maps SDK. This issue has been solved in Version 1.8.0 - May 2014.
Check the release notes.

Related

No rotations after programmatically setting rootViewController in iOS 8

After programmatically setting self.window.rootViewController in my controller, none of the orientation change callbacks (old or new) are called for the rest of the time the app is running under iOS 8. Is there a different way you are supposed to do that in iOS 8? or is this a bug and if so does anyone have a workaround?

Nokia here map and mobile pinch zoom

I used Nokia here map (version 2.5.4) within my web application, but if I open my web site on mobile device (Tested on Android 4.x Nexus 7 ,IOS7 IPhone5c ) it is unable pinch-to-zoom.
I also found a similar issue:
Nokia Here JavaScript API disables pinch zoom in iOS
I also try downgrade here map API version to 2.2.3, pinch-to-zoom is working but I cannot use the built-in marker function in 2.2.3 version.
Any solution/suggest?
I found the solution!
First we detect client , if client device is mobile/tablet
Than load 2.2.1 here map , otherwise load newly version
In my case , i also need use custom icon marker with overlay text .
In newly version , i can use https://github.com/heremaps/examples/tree/master/maps_api_for_javascript/demos/text-on-icon-marker to meet the requirement.
Unfortunately , in 2.2.1 above solution is not working, but we can referring to http://api.maps.nokia.com/en/playground/examples/maps/map_objects/customsvgmarker.html using SVG image instead of bitmap .
But this solution only working on Android 4.x .
IOS is not working
Please use the newest Here Maps API for JavaScript 3.0, you can find more information on developer.here.com, this Version is optimized for mobile usage.
An extensive set of examples for the API can be found on the API Explorer.
There is also a migration guide available to help your upgrade from 2.x to 3.x

Server-Sent Events does not work on Nexus 7 webview with Android version 4.3

I'm now using Nexus 7 for my project which is using Server-Sent Events to get alert message.
On Nexus 7 Chrome browser, it works well.
But when I load the same page using webview, it does not work (saying "your browser does not support server-sent events...").
The source codes are exactly the same as [http://www.w3schools.com/html/html5_serversentevents.asp].
I think there maybe some difference between Chrome browser and Android Webview.
Could some one tell me how to make it work using Android Webview?
I think WebChromeClient is the one you need anyway. I am using both WebViewClient AND WebChromeClient because the latter one is full HTML5 enabled.
So in your Android WebView you can use BOTH Clients at the same time.
For instance
// clients
webView.setWebViewClient(new CustomWebViewClient(this));
webView.setWebChromeClient(new CustomWebChromeClient(this));
I use WebChromeClient for all the fancy stuff, like Javascript popups and yes, SSE using PHP scripts.

Pinch gestures in WP8

I'm trying to port existing wp7 app to wp8 and there is problem with maps. Map is made from 6 tiles. Everything is working well, but pinching is terrible. Works much worse than on WP7.
Anything changed in WP8? What I have found is small information from microsoft presentation which says that in WP8 some things from pinch and strech were improved
Extends the ManipulationDeltaEventArgs class
PinchManipulation property
Provides center point for the original and current gesture
my 0.02$: On WP8 you should move from Bing Maps to using the new Nokia Maps control # http://www.developer.nokia.com/Resources/Library/Lumia/guide-to-the-maps.html
If you have just ported your app to WP8 from WP7 then everything should work as before. The only problem might be if you have hardcoded some display resolution values in your app, for computing the pinch gestures for example, and the app in now running on device with 720p display - it has height 853px instead of 800px.
Anyway as Justin noted you can switch to new Nokia maps in WP8, but you can still use Bing maps as well, although they are deprecated on WP8. You just have to reference new WP8 Bing maps library in folder:
C:\Program Files (x86)\Microsoft SDKs\Windows Phone\v8.0\Libraries

Google Streetview images show as grey screen in Internet Explorer?

I have developed a javascript API application that retrieves Google Streetview images based on where a user clicks on an interactive map.
For some reason in the past couple of days there have been intermittent issues with this process as a grey screen is just returned and it isn't until you start to pan around that an image is returned.
The same thing happens in Google's own API example here:-
http://code.google.com/apis/maps/documentation/javascript/examples/streetview-service.html
After the initial click, subsequent clicks just return a grey screen (this is in Internet Explorer 7, it appears to work in Google Chrome and Firefox).
This didn't used to be a problem - has anyone else experienced this issue when using Internet Explorer (either version 7 or another)?
Thanks
I think this is a bug in the 3.8 nightly api build.
Specify a specific api build.
http://maps.googleapis.com/maps/api/js?v=3.7&sensor=true_or_false
Google documentation reference