Integrating Google AppInvites to iOS App - ios

I'm interested in integrating new AppInvites by Google to my iOS app. There are some problems...I'm currently using googleplus-ios-sdk pod and it seems like I cannot have AppInvites pod with googleplus pod as they have some common classes (which results as error during linking of course).
I'm looking for solution how I can use both pod, or maybe there is another pod from Google that can do googleplus job.
Google site is not helping, I've found list of all pods published by Google:
https://developers.google.com/ios/cocoapods?hl=pl
but I don't see one for Google+.
Do you have any advice for this?

The most likely cause of your issue is that you're using v1 Sign-in (e.g. GPP* objects and the GPPSignin singleton) when you probably should be using Google Sign-in 2.0 (GID* objects and GHI* objects).
If you're using GPPShare then you may need to do more work to get it to work well alongside GIDSignin. It may be easier for you to use a link-based approach to sharing, e.g. pass a URL such as https://plus.google.com/share?url=https://yourshareurl.com to a web view or open call.

Related

Login with Google Drive is not getting authorized

I'm refering the link
https://developers.google.com/drive/v3/web/quickstart/ios#step_1_turn_on_the_api_name
To authenticate google drive with my application. I can do signing with google with pod 'Google/SignIn' but not with
pod 'GoogleAPIClientForREST/Drive', '~> 1.1.1'
pod 'GTMOAuth2', '~> 1.1.4'
As link suggest. Also I can see that the above google link says that Last updated March 9, 2017.
It seems like this code is now not is use but google doc is not updated. Please correct me if I'm wrong.
Hmm.. Google mustn't have updated the doc.
Although, they had announced that authentication from embedded browsers is no longer supported, for improving app usability.
In the coming months, we will no longer allow OAuth requests to Google in embedded browsers known as “web-views”,
As you can see in this blog:
"In the coming months, we will no longer allow OAuth requests to Google in embedded browsers known as “web-views”, such as the WebView UI element on Android and UIWebView/WKWebView on iOS, and equivalents on Windows and OS X."
To help you migrate, they offer libraries and samples that follow modern best practices which you can use:
Google Sign-In for Android and iOS, our recommended SDK for sign-in and OAuth with Google Accounts.
AppAuth for Android, iOS, and OS X, an open source OAuth client library that can be used with Google and other OAuth providers. We also offer GTMAppAuth (for iOS and OS X), a library which enables AppAuth support for the Google APIs Client Library for Objective-C, and the GTM Session Fetcher projects.
You can also check the Github - Introduction to the Google APIs Client Library for Objective-C for REST to help you check on the updates for the Google API. There is also reported issue about this which you can follow to track on any updates on this.
Hope this helps.

disallowed_useragent with Google Drive SDK

I am trying to implement Google Drive SDK in my project but nothing seems to go well, i wanted to upload images and create folder on Google Drive but i am stuck with the error ,which i don't know how to get through, as i found nothing related to the following error.
I have strongly followed this link for code
Google has updated its security restrictions for OAuth flow. They are not going to allow native web-views to initiate OAuth flows. You will need to use the OS browsers to do so.
Modernizing OAuth interactions in Native Apps for Better Usability and Security
You may have to wait for google to update the sample code or figure out how to do it yourself sorry i am not an IOS developer so cant be of any help.
The issue is already logged on the issue forum for Google drive 4919

Add Google Analytics to iOS App through Google Tag manager

I'm trying to add Google Analytics to my app using Google Tag Manager, and I can't seem to get this to work. The way I thought it worked is that I add GTM to the app, and then in my account on GTM website I add Google Analytics tags and set the tag up with my Tracking ID from my Google Analytics account (and the app I created there). I then use GTM in my app to trigger tags and track data.
And this all works fine and dandy, I send data to GTM, and I get HTTP status codes as 200 so it "works". But in Google Analytics I can't see a damn thing. Do I have to add Google Analytics to my app project as well? And do I have to use the Singletons for tracking with Google Analytics in that case? It feels like that is missing the point of what GTM is supposed to do if I have to add Google Analytics to the project as well...

AWS Mobile without the SDK

Is it possible to use the AWS mobile services (Cognito, Analytics, etc) without linking all the SDK in an Xcode project?
Background:
* While I am not new to AWS nor mobile programming, the following case is challenging:
We are shipping a mobile "framework" (not app) that uses our AWS for some parts (Authentication, logs).
And, as the AWS SDK has to be linked in the app project itself, this will require us asking all the clients (developers) to download and link it in their own projects.
What is used in the framework is just one request for authentication and one for logging (success/failure, disconnection), so no need for all the SDK.
I wonder if there is a possibility to request AWS services without linking against the SDK?
I know it's possible to put then under an umbrella SDK, or do some cherry picking from their git repository, but both of these seem like overkill.
As the request itself is a simple URL with Get/Post, is there a possibility (or tutorial) on constructing the request manually via NSURLConnexion/NSURLSession, etc?
Thank you
Talking to the AWS APIs is actually not that hard. The main difficulty is signing your http requests, and that's not nearly as bad as it sounds. Which leaves xml parsing accounting for most of the unpleasantness.
I've done it in go. The most informative part is probably the signing tests.
Indeed, it is possible. You will have to code calls to AWS at the REST level. Everything you need is in the documentation of AWS.
For instance, if you needed to execute actions on EC2, here's what you'd have to code:
http://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#structure-of-a-get-request
You can call the HTTP APIs directly. Since the AWS Mobile SDK for iOS and Android are open source, you can look at them directly. Find the AWS Mobile SDK for iOS Source on Github, and the AWS Mobile SDK for Android on Github. Since you mentioned you need authentication request on iOS I am guessing you're looking for the Cognito Identity in AWSCore source.

How to Authenticate and Get Reports from Google Analytics to iOS

How to Authenticate and Get Reports from Google Analytics to my custom iphone application.
I just want to Authenticate the User and get the registered URLs from Google Analytics.
You need to use GData Static library for Objective-C
you can find it here:
https://github.com/google/google-api-objectivec-client
You can see that one of the links is for analytics.
Here you can find a good tutorial for linking the library:
Kelvin's blog - GData Objective-C Client Setup in Xcode 4
If you are using ARC, here is an update for the Header files so you can integrate them in your project with out getting ARC warnings:
Updating Gdata library for ARC
And this is a simplified explanation I made for the ARC problem:
explanation on the update

Resources