disallowed_useragent with Google Drive SDK - ios

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

Related

how will google/gtm-oauth2 / GTMOAuth2ViewControllerTouch work in April?

i am using gtm-oauth2 (as part of https://github.com/google/google-api-objectivec-client ) and I started getting a warning about webviews not being supported to sign in on april 2017.
i assume they want me to move to https://developers.google.com/identity/sign-in/ios/ , but I can't find an example how to integrate the sign-in sdk with https://github.com/google/google-api-objectivec-client-for-rest or https://github.com/google/google-api-objectivec-client which seem to still want to handle sign in with GTMOAuth2ViewControllerTouch which as I understand is not acceptable under the new rules
my question: what mix of google sdks allows me to sign in to google the correct way and then access things like google drive apis?
my guess is I should be using https://github.com/google/GTMAppAuth
and not https://developers.google.com/identity/sign-in/ios/

Facebook Instal Tracking like Google AdWords in iOS

One of my clients asked me to add the conversion tracking of Google Analytics AdWords, and they send me this link:
https://developers.google.com/app-conversion-tracking/ios/conversion-tracking-server
We use Google Analytics to track everything in our app and we are not interested in use the Facebook SDK to track the same (or almost the same) we track on Google Analytics, so I have been looking for a way to use the Facebook Pixel in a similar way Google does.
In Google I just have to call this URL (this is the example of the link above):
https://www.googleadservices.com/pagead/conversion/0123456789/?label=abCDEFG12hIJk3Lm4nO&rdid=8880ea97-db86-4e10-a10f-4e71461ab8f9&bundleid=com.example.MyApp&idtype=idfa&lat=0
If I get a 400 response the URL is not well formed and if I get a 200 response everything is ok, is pretty easy and in accordance with our development.
Is there a way to do something similar with the Facebook Pixel? I have look a lot on the web and everything I can find tells me to install the Facebook SDK in my iOS project.
Thanks to all in advance for the help.

OAuth and google: I must be missing something?

I'm using thephpleague oauth client library and everything works fine except for Google authentication. It seems I have to enable my domain somewhere to be able to use Google apps.
https://support.google.com/a/answer/33419?hl=en
This was not helpful indeed as I don't understand what I have to do. Am I obligated to pay for having a working OAuth connection with Google? I don't have a company, I don't need the apps, cloud or any other thing then a working API.
EDIT: to be clear I already wrote my libraries for OAuth and it's all working, it's Google that needs me to do something on domain level.
You don't have to pay. First of all you need to create a project in the Google Developers Console. Then get your credentials. I don't know which API you are going to access. Have a look at this.
https://developers.google.com/identity/protocols/OAuth2?csw=1
Additional - This site was very helpful for using the Google Calendar API
http://www.daimto.com/accessing-google-calendar-with-php-oauth2/#Conclusion
Hope you find what you are looking for.

Google Plus Over the Air installs via server-side oauth

Google released nice feature called Over-The-Air Installs. But documentation has example only for google's sign-in button.
Checked Google API PHP Client and it doesn't have anything related. Tried adding apppackagename and app_package_name to authorization url - didn't help. Another problem is that Google doesn't enable this feature for all clients.
Is it possible to use it via oauth triggered on server-side? Does Google somehow indicate that you're allowed to use this feature?
It is currently not possible to trigger Over-The-Air Installs using the server-side flow. It is recommended that you use the client-server flow as described and demonstrated in the quick-start sample apps instead of using a server-side flow.
You can direct users to install the app at the conclusion of your install by linking to your app in the play store. From the play store, the user could still install your app directly to their device, it would just not happen in the sign-in dialog.
Even hybrid client-server flow needs to implement the "sign-in button" to your page...
https://developers.google.com/+/web/signin/server-side-flow
https://developers.google.com/+/web/signin/client-to-server-flow
Don't know why Google is doing this way!

Google Analytics Reporting SDK for iPhone?

Upon exploring new ideas for apps, I stumbled on one that seemed pretty easy to do once nailed down to the right SDK, etc. I want to use Google OAuth authentication system to report Google Analytics data into my app, from the users account.
A couple days of researched turned up pretty much nothing but on how to add Google ANalytics to YOUR app to track YOUR views, etc.
Where should I begin? Does Google have Sample Code for this?
Google has a complete API for accessing the Google Analytics data. See https://developers.google.com/analytics/devguides/
There are several iOS apps out there that already use this data to provide graphical and numerical data on your GA account.

Resources