Step by Step "Getting Started"Google Maps SDK for iOS issue - ios

thank you beforehand.
Here is my problem:
I have the latest version of Xcode (4.5.2 I believe). I followed the getting started google maps api sdk for iphone tutorial, never did more nor less. I used the sample code google tutorial offers, changed the viewcontroller name as they explain, created the project disabling the "Use storyboards" as they suggest, in other words, I did exactly what the tutorial says but my app never shows a map, just a black view, I think it doesnt even shows a view, and the console shows the followin (warning?, error?):
2013-01-16 16:43:45.987 MapTest[9147:c07] Application windows are expected to have a root view controller at the end of application launch
I have no idea why this could be happening. The funny thing is that I erase the google maps api ios sdk tutorial sample code and the app works, well it shows the blank view that would normally show when you create a new app. Your help would be appreciated (sorry about my english, it might suck).

It's because, from iOS 5 and above, the window of an app is required to have a root view controller to handle screen rotations correctly. From your App Delegate, you should replace the
[window addSubview:viewController.view];
to
[self.window setRootViewController:viewController];

You have to enable "Google Maps SDK for iOS". in your google account console "services" tab.
Try this :)

Related

Google Map don't load in iOS

I’m using GoogleMaps pod in my iOS application and it was working fine, but in my last build, apple reject my application. And the reason behind that is, the map was unable to load at the time of review on iPad running iOS 12.2 on Wi-Fi.
I did try to reproduce that bug on my device but I couldn’t.
Application do ask for location permission
Google Place API key also seems ok.
Is there any way to identify what the actual issue is and how I am supposed to solve this one?
Finally, I've solved that issue and for that, I've done some of the changes in my project.
1 - I've patched the latest Google Plist file in the project (I wasn't sure whether the old one was latest or not)
2 - I was using multi language in my project so before setting the delegate of google map, I've set the language for my project.
3 - instead of set the google map from Storyboard, I've set the google map programmatically in my view controller after setting language.
After surfing for so long to solve this issue, I came to know that this issue occurs when your App supports multi language. These some steps did work for me.

AdMob V2 / AdMob Beta Ad Unit Never Created

I have successfully added test banner ads to my ios app. The app is linked to Firebase and we've added company tax info to AdMob settings (pending). When I click add an ad unit, the loading spinner never completes even after multiple minutes.
The documentation for creating an ad unit says to access the Monetize tab (https://support.google.com/admob/answer/3052638?hl=en&ref_topic=3052726). This tab does not exist in my console. My console says AdMob Beta. I have also tried to leave AdMob Beta following these instructions following Google admob/answer/7378069 but do not see a Leave AdMob Beta link at the bottom of the AdMob user interface.
Ad Unit Loading Screenshot
Looks like you found or were directed to the Help Center article for the older version of the AdMob interface. You can find updated documentation here:
Set up an app in AdMob
Ad units, ad formats, and ad types
Regarding the issue with Chrome and Safari, are you using an ad blocker with Chrome? If so, it can (as one would expect) block calls and cause errors when using the AdMob user interface.
For those running into this error using Chrome, try a different browser.
Thanks very much Amod for pointing me in the right direction. I was using Chrome. I cleared caches and restarted but ran into the same error using Chrome. However, I was able to successfully add ad units using Safari.

Unity and Facebook - iOS won't post, android does

having a bit of an issue that I haven't been able to find anywhere. I've created a game using Unity and the Facebook SDK for Unity. It works great in the editor, great when pushed to android....But when I try an iOS install, it won't post onto my timeline or anyone else's and invites don't work....But the android version does.
It brings up the dialog like it should, looks like it's about to invite/post, then just goes back to the game.
I'm using Unity 4.3.4, Facebook SDK for Unity 5.0.3 and Xcode 5.1.
Any help would be appreciated.
EDIT: Some additional news. Facebook SDK for Unity has a tutorial attached to it where they have a pre-built project called Friend Smash to show you how the SDK works. I just ran the completed project through Xcode and pushed it to my iPhone and have experienced the EXACT same issue. Invite appears to be sent (even appears on the screen saying "request sent") and it appears to post my score to Facebook, but again nothing appears on Facebook.
Looks like this was my stuff up.
Looks like my request wasn't being given a Post ID. In checking my code, I had written "actionlink", instead of "link" in the "onBragClicked" method which fouled up the process....Yet somehow didn't screw up my android build.
Anyway, thanks for viewing.

MKMapView init failed in an App which contains Google Maps SDK

I am now testing some Maps service provider.
First I have a tableview which contains two provider:"Map Kit","Google Maps SDK".
And when I go into the map kit sample,then get out, and then go into the google maps sample, everything works fine.
But, when I go into the google maps sample first, then get out, and then go into the map kit sample, it crash.
When debug, I find out it crash when [[MKMapView alloc] init]
Why this happens?
Although in real App, we won't have two map service provider, I still want to know the reason.
Thanks.
There are a couple of existing questions which cover this:
Google Maps SDK & Mapkit in the same app cause crash
Switch Google Maps SDK & Mapkit in the same app cause crash
However, this was related to this bug which Google fixed in version 1.1.2 (released 26th March) - so make sure you have the latest version of the SDK.
Otherwise, as explained in the other questions, you might need to clear or save/restore the OpenGL context before calling MapKit.

Facebook SSO implementation in storyboard- blank screen after login

I am trying to implement Facebook SSO in storyboard (Xcode 4.2) and the AUTH dialog goes perfectly until the login is completed. At that point Facebook appears to return to my app but what actually shows up is a white screen which, despite my best efforts, I cannot dismiss. From searching on Stack Overflow this seems like an infrequent problem encountered on other platforms as well but I didn't find any answers for IOS.
My best guess is that this is caused by some misstep of mine in implementing the facebook tutorial: https://developers.facebook.com/docs/mobile/ios/build/ in storyboard, not XIB. Unfortunately the only facebook example projects I've found use Xib's. But honestly I don't really understand the issue or the AUTH dialog that well.
If you're still looking check out the latest Facebook SDK 3.1 and sample that uses story boards: https://github.com/fbsamples/ios-social-cafe
This is similar to an issue I had . . . have you checked to make sure your segue goes to the correct viewController?

Resources