dart-lang / sdk

The Dart SDK, including the VM, JS and Wasm compilers, analysis, core libraries, and more.
https://dart.dev
BSD 3-Clause "New" or "Revised" License
10.24k stars 1.58k forks source link

Google API keys are missing. #13100

Closed DartBot closed 9 years ago

DartBot commented 11 years ago

This issue was originally filed by lawrence...@gmail.com


What steps will reproduce the problem?

  1. create a new web application.
  2. press the "run(cntl-R)" arrow menu icon.
  3. receive the initial screen in the Dartium/chrome    pannel.
  4. For a brief few seconds to informational lines    appear at the top of the panel, just under the    address field.
  5. The first line is Yellow with black letters.    The text displayed is: "google API keys are missing.    Some functions of Chromium will be disabled."
  6. The line just under it in light gray background and    black letters has text: "For quick access, place your    bookmarks here on the bookmarks bar. In underlined    text it continues: "Import bookmarks now...".
  7. Then these lines are removed, leaving the expected    application user interface.

What is the expected output? What do you see instead?

  1. Did not expect to see these additional two lines (messages).
  2. I saw the "warning" message and the "bookmark" messagee.

I wonder what effect the "warning" message will have.

What version of the product are you using? On what operating system?

  1. running Windows 7 Home Premium, service pack 1.
  2. Chromium: Version 29.0.1547.62
  3. Dart Editor version 0.7.1_r27025    Dart SDK version 0.7.1.0_r27025    (but it was doing this on the previous release.) I am new to the Dart environment.
madsager commented 11 years ago

Added Area-Dartium, Triaged labels.

a-siva commented 11 years ago

Added this to the M7 milestone.

devoncarew commented 11 years ago

I did some searching and found a relevant page: http://www.chromium.org/developers/how-tos/api-keys

It'd be great to fix this, as the warning that's displayed when Dartium starts up is a bit disconcerting to users. It also means that several chrome app APIs are not available because these keys are missing.


cc @ricowind. cc @mkustermann.

vsmenon commented 11 years ago

Removed this from the M7 milestone. Added this to the M8 milestone.

DartBot commented 11 years ago

This comment was originally written by douglas.da...@gmail.com


Possibly related. I attempt to sign into Dartium but receive the error: "Oops sync has stopped working."

Chromium Version 31.0.1650.0 (224845) from Dart VM version: 0.8.10.3_r29803 (Mon Nov 4 07:02:37 2013) on "macos_x64"

Mac OS X Version 10.9

vsmenon commented 11 years ago

Re: http://www.chromium.org/developers/how-tos/api-keys, we should not be distributing chromium builds with the API keys pre-built in. Note, you can acquire your own API keys and define via env variable as suggested on the page. This does work in Dartium.


Removed this from the M8 milestone. Added this to the Later milestone.

DartBot commented 10 years ago

This comment was originally written by douglas....@gmail.com


Thank you for referring me to http://www.chromium.org/developers/how-tos/api-keys. I followed its instructions setting my GOOGLE_API_KEY, GOOGLE_DEFAULT_CLIENT_ID and GOOGLE_DEFAULT_CLIENT_SECRET, respectively through my ~/.bashprofile verifying that echo $GOOGLE... outputs the expected. Yet, when I open Chromium it still provides the same warning message and I cannot sign in to Chrome to develop my Chrome-Dart apps that utilize APIs. I also filed SOO http://stackoverflow.com/questions/20022281/setting-up-google-api-keys-dartium-mac-osx. Thank you for your help.

DartBot commented 10 years ago

This comment was originally written by stephan.be...@gmail.com


I have the same issue with Dartium v31. Folowed the How-To step-by-step yet it still displays the warning.

DartBot commented 10 years ago

This comment was originally written by rmwels...@pediatrichomeservice.com


This issue is occurring for me also, is there an update on a possible resolution?

DartBot commented 10 years ago

This comment was originally written by chenlei.bain...@gmail.com


This issue is also occurring for me! I already set my environment variables .

DartBot commented 10 years ago

This comment was originally written by markhl...@gmail.com


I'm glad (well not really glad) to see others are the problem also. I've tried this a bunch of different ways, but don't have the time to do a chromium build.

The how-to is helpful, but I can't get Chromium to work for the "hello world".

DartBot commented 10 years ago

This comment was originally written by vlo...@gmail.com


I followed http://www.chromium.org/developers/how-tos/api-keys 2 weeks ago with dartium 33.0.1750.48 (251129)...

And afaik, everything run fine now... I no longer have the "api key missing" warning, i can connect the dartium browser to my google account, and use google api in my dartium-chrome-apps (oAuth, Drive)...

kasperl commented 10 years ago

Removed this from the Later milestone. Added Oldschool-Milestone-Later label.

DartBot commented 10 years ago

This comment was originally written by jarro...@gmail.com


I'd like to see this issue fixed because it stopping me to develop my Chrome app in Dart which use chrome.identity API. But I'm must be signed in to Chromium to use this API. Any updates on this?

ricowind commented 10 years ago

jarrodek: Doesn't it work if you follow the guide here: http://www.chromium.org/developers/how-tos/api-keys As Vijay says, we can't use these keys for shipping chromium based builds.

I am closing this bug since we will not be shipping such builds


Added NotPlanned label.