Unable perform google plus sign in ios using ionic 2 - ios

Hi i am applying social login scenario in my ionic app where i applied google sign option and it is working perfectly with android and when comming to the ios im getting the below error
the api key and bundle id everything are set and working perfect

You have to follow the below steps as configuration for google login through IOS
Go to https://developers.google.com/mobile/add?platform=ios&cntapi=signin for IOS registration
Enter IOS bundle Id from widget Id in config.xml of the project
Enable Google sign In and generate configuration file
Copy the reverse client Id from downloaded file
Install the plugin with reverse client Id instead of webclient Id which we used for Android
run cordova plugin add cordova-plugin-googleplus --save --variable REVERSED_CLIENT_ID="myreversedclientid"
We can find the reverse client Id in Google developer console also credentials->iOS URL schema is the reverse client Id
Extract from Plugin documentation
To get your iOS REVERSED_CLIENT_ID, generate a configuration file
here. This GoogleService-Info.plist file contains the
REVERSED_CLIENT_ID you'll need during installation. This value is only
needed for iOS.
The REVERSED_CLIENT_ID is also known as the "iOS URL Scheme" on the
Developer's Console.
Login on iOS takes the user to a SafariViewController through the
Google SDK, instead of the separate Safari browser.
IMPORTANT:
Please note that myreversedclientid is a place holder for the reversed
clientId you find in your iOS configuration file. Do not surround this
value with quotes. (iOS only Applications)
If you are building a hybrid application (iOS and Android), or an
Android application, you have to replace myreversedclientid with the
reverse value of Client ID in your Release credential generated on
step 3, on Google Developer's Console, this will be:
"com.googleusercontent.apps.uniqueId", without quotes.

1)Go to firebase console in your project add for ios.
2)you can see the google-info-plist file download it.
3)in this plist file have webclientid and reverseclientid use this
in package json file where google plus varible of webclient id and reverseclient id.same
as in config.xml file then after.
4)run commnad ionic cordova prepare ios then ionic cordova build ios
5)buy beer for me :)

Related

React native IOS app web-services works on simulator but not real IOS device

I have done with all the settings of my react native project and trying to run on the IOS simulator, it's working fine. Means all the api working properly.
So now I have to share my .ipa file to team members for testing, so creating .ipa file I am using procedure defined on react nativeRunning On Device documentation.
For creating .ipa file using Xcode following below process:-
In Edit Scheme option, change Build Configuration to release.
Clean Build Folder
Create Build.
Archive build.
After that exporting .ipa file using valid certificate.
Solutions I have tried:-
Checked with this solution, because the domain I am using to hit web service is not secured.(It's http)
Enable Transport security flag.
Added main.jbundle (created using command line) to Copy Bundle Resource option in Build Phases.
While adding Alert in api call, getting below error (check image)
Still No luck.
Please let me know, what I am doing wrong?
Please check api server live link is working or not. In my case, I am testing whole api's on local network (In LAN). But when trying with live url, I am also facing this issue.
So that time I made one mistake, that my url should contain http:// but in actual it was https://.
It's pointing to main.jsbundle file, that means it's having issue
related with your code.
So check it once.

Is it possible to use Google Sign-In from an SDK inside of an App/Game?

I am building an SDK that developers will have inside of their games/apps. I am trying to find out how to get Google Sign-in to work. It is trying to use the bundle id of the game itself instead of the bundle id of my sdk.
Thanks in advance
For anyone else inquiring. We got this to work by first adding in the url schemes via google into our sdk and then adding the url scheme of sdk bundle id to the game/app, which we did via a compile script

Ionic iOS App Error - Custom Scheme URIs are not allowed for 'WEB' client type

I am using this plugin.
https://github.com/EddyVerbruggen/cordova-plugin-googleplus
The implementation works fine for android. But google sign in on iOS opens safari webview and throws 400 invalid_request.
I am using the ios client id and reverse client id generated on google developer console.
Anyways to debug or know what the issue is?
The usual cause of this error is having an incorrect REVERSE_CLIENT_ID. Double check that you have the REVERSE_CLIENT_ID from the plist file downloaded when you set up the iOS application registration on the Google developer console. Note that if you got it wrong, changing this is difficult, as it gets copied into various locations and won't update automatically if you just try to change it in config.xml. When I mistakenly used my Android client ID to set up the plugin, I found that as well as config.xml I also needed to change the top level package.json file, and the <appname>-Info.plist in the platforms/ios directory in order to get the correct ID used.

How to integrate GTM with Firebase analytics enabled Application which developed using Xamarin Android platform

I am developing Mobile application using Xamarin Android. We have integrated Firebase portal with our application successfully. Also we are able to see all automated event and custom event on Dashboard in firebase Console.
Now my requirement is to integrate Google Tag Manager(GTM) SDK with existing Firebase SDK in my application. I tried to integrate by following some below links
https://developers.google.com/tag-manager/android/v5/
https://github.com/IdoTene/XamarinTagManagerAndroid
but ended up with build error Invalid Resource file Name for GTM configuration file(GTM-XXXX.json).
So here is my question, How to integrate GTM SDK with Firebase SDK in Xamarin Android application.
Please any help would be greatly appreciated.
I don't know if you figured it out eventually, but for future reference, the problem is that the IdoTene tagmanager project is for tagmanager v4, which is pre firebase. Instead you should use the version that Xamarin maintains:
https://www.nuget.org/packages/Xamarin.GooglePlayServices.TagManager/
The steps are very simple. Integrate GTM containers (ios and android) as follows:
For Android -> create subfolder in assets folder and name it as containers, copy container in it (make sure it's naming starts with GTM-xxxxxx.json).
For iOS -> create a folder container in the root directory and copy GTM container json there (GTM-xxx.json)
Then install Xamarin.GooglePalyServices.TagManager nuget for Android and Xamarin.Google.iOS.Tagmanger for iOS.
Thats it for Android, but for iOS, there is a one more step.
Integrate following code in AppDelegate.cs
Google.TagManager.TagManager.Configure();
Then you should be good to go!! :)

GoogleMapsM4B framework not showing Map

Hi I currently build in IOS using GoogleMapsM4B framework. But the Map is not showing.Any Idea?
step 1:i have downloaded Google Maps Mobile SDK from this link sdk ios
step 2: Create an API project in the Google APIs Console.
step 3: Select the Services pane in your API project, and enable the Google Maps SDK for iOS. This displays the Google Maps Terms of Service.
step 4:i Selected the API Access pane in the console, and click Create new iOS key.and then i added API Key in AppDelegate.m.
I am not getting result. in log i got this error,Your key may be invalid for bundle Id,but when i use google maps framework(old) it's work fine no error.
error - itms-90535 unexpected cfbundleexecutable key

Resources