Is it possibile to use GA Embed API in Electron JS?
I looked for NPM's, but I can't see any related to it.
I've copied the example from here:
https://ga-dev-tools.appspot.com/embed-api/basic-dashboard/
and added it to my electron project.
I'm getting this error: yw {message: "Invalid cookiePolicy", stack: "gapi.auth2.ExternallyVisibleError"
That's why I'm not sure if it's possible to use the Embed API in Electron.
Related
hay,
im develop an app on ionic platform ,
im trying to get some information from google api to show on map
In ionic 4.7.1 on IOS I try to access Google Maps services and get the following error:
Google Maps JavaScript API error: RefererNotAllowedMapError
https://developers.google.com/maps/documentation/javascript/error-messages#referer-not-allowed-map-error
Your site URL to be authorized: ionic://my-domain/home/appointments-new/appointments-search-fields
The request with an ionic preffix instead of https preffix and causes error of CORS.
The RefererNotAllowedMapError means that the current URL loading the Maps JavaScript API has not been added to the list of allowed referrers, as per Error Messages documentation (https://developers.google.com/maps/documentation/javascript/error-messages).
As per the error message you have shared, you can add ionic://my-domain/home/appointments-new/appointments-search-fields to your list of website restrictions for the API key you're using. The steps on how to do this can be found here:
https://developers.google.com/maps/api-security-best-practices
https://youtu.be/2_HZObVbe-g
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
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.
If I have a URL for a file in Google Drive, how does one open it in the native Google Drive app?
Basically trying to implement something similar to Open in Chrome (
https://developers.google.com/chrome/mobile/docs/ios-links )
Gmail on iOS already does this, so I'm trying to figure out what is the check to use for canOpenUrl and what to pass down to [[UIApplication sharedApplication] openURL:... ];
Warning: What you are trying to do is not officially supported by Google. (For instance, they could change the url scheme at any time)
The Google Drive app's custom url scheme is
googledrive://
The "right" way to support interacting with Google Drive from your app is to use Google's provided SDK.
https://google-developers.appspot.com/drive/quickstart-ios
I know this question is really old, but it comes up on the first page of a Google search for "ios open link in google drive". Besides, I had this question as well. Turns out the url scheme for Google Drive is googledrive:// (as Andy Obusek said in his answer.) To open a Google drive link in the Google drive app, just prefix the sharing url with the url scheme. For example, if I have a url to a Google doc (e.g. http://link_to_google_doc), I can have this automatically open in the Google drive app by prefixing with the url scheme (googledrive://http://link_to_google_doc). This worked for me. Keep in mind this is an unofficial answer. I didn't read any documentation about this; I just played around with it until it worked.
It seems that it can't open foreign document if in the link has my Google Apps domain, so remove it.
Too it seems Drive app can't open document if you have Docs app installed, so prepend http link with googledocs:// scheme.
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