Comments (5)
Yes, you do have to be signed into the browser for this to work, and
signing into your company is not the same as signing into the browser, as
ATWilson already explained. on the chromium-dev group.
I have definitely seen the GetChannelId work when signed into chromium, it
is surprising that did not work for you, can you please give me more
details? Perhaps you could show me the code making the call and the error
return value that you got.
On Wed, May 29, 2013 at 10:12 AM, John05 [email protected] wrote:
I have two problems, I am trying to use the sample
https://github.com/GoogleChrome/chrome-app-samples/tree/master/push-messaging-roundtrip-sample,
in this example is used the function chrome.pushMessaging.getChannelId.For using this option it is mandatory to sign in to Chrome or Chromium
browser, originally I could not sign in with the mail of my company,
[email protected], after an update of Chrome and Chromium the problem
was solved.The problem right now is that if I sign in with my account of gmail I can
obtain the ChannelId without problems, but if I sign in with mmy account of
sanmina I dont get channel, so I imagine the problem is related with the
managment of my company in the policies but I am not sure, I hope somebody
could have a more clear idea, thanks in advance.Like additional information, in Chromium I can not get the ChannelId even
with my gmail account, I am using archlinux.—
Reply to this email directly or view it on GitHubhttps://github.com//issues/106
.
from chrome-extensions-samples.
Well, the line of code that makes the call to get the Channel is chrome.pushMessaging.getChannelId(true, getChannelIdCallback), when I call this function I suppose that the API makes the process to review if the user is logged in the browser, if not, then start the process to sign in. If the user is logged, then in the function getChannelIdCallback I get a variable with details that the API returns, in this details comes the ChannelId, I don't have error, only try to print in the console detail.channelId, but I have this field empty, so I can not understand why with my gmail account in Chrome is the only way to get the Channel, because in Chromium no work neither gmail nor sanmina account.
I have used this example https://github.com/GoogleChrome/chrome-app-samples/tree/master/push-messaging-roundtrip-sample and this other https://github.com/GoogleChrome/chrome-app-samples/tree/master/push-sample-app, the same result with both.
By the way, could give me the link when ATWilson refers to the differences between sign in to the company and the browser please?
Thank you for your time, I hope you can help me.
from chrome-extensions-samples.
https://groups.google.com/a/chromium.org/forum/?fromgroups#!topic/chromium-dev/cSTjjU3SXgA
is
the link where ATWilson (Drew) discusses your problem.
It sounds like getChannelId is failing for you with both your gmail and
sanmina accounts in chromium, but succeeding for your gmail account in
chrome. What version of chromium are you running?
I have definitely seen the call succeed in chromium when logged in with a
gmail account, so I know that the scenario works. The question here is
"why isn't it working for you?" The most common error is an access denied
error for not being logged in to chrome sync.
If you are getting back an empty channel ID, there is an underlying HTTP
call sent to chrome with the actual error. Are you able to use either
wireshark or fiddler to look at the HTTP error being returned from Google?
If so, we may be able to find out what the error is.
On Wed, May 29, 2013 at 1:20 PM, John05 [email protected] wrote:
Well, the line of code that makes the call to get the Channel is
chrome.pushMessaging.getChannelId(true, getChannelIdCallback), when I call
this function I suppose that the API makes the process to review if the
user is logged in the browser, if not, then start the process to sign in.
If the user is logged, then in the function getChannelIdCallback I get a
variable with details that the API returns, in this details comes the
ChannelId, I don't have error, only try to print in the console
detail.channelId, but I have this field empty, so I can not understand why
with my gmail account in Chrome is the only way to get the Channel, because
in Chromium no work neither gmail nor sanmina account.
I have used this example
https://github.com/GoogleChrome/chrome-app-samples/tree/master/push-messaging-roundtrip-sampleand this other
https://github.com/GoogleChrome/chrome-app-samples/tree/master/push-sample-app,
the same result with both.By the way, could give me the link when ATWilson refers to the differences
between sign in to the company and the browser please?Thank you for your time, I hope you can help me.
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/106#issuecomment-18643210
.
from chrome-extensions-samples.
Actually I can get the Channel Id in Chromium with my gmail account, the problem persists with my sanmina account, the problem for Chormium was that for Arch Linux the API keys used in Google Cloud Messaging were not enabled, I contacted to the package mantainer of Chromium in Arch and he enabled that option, the other problem still persists, I don't know exactly what can be the problem or who could help me, if you know where can I start you are welcome, I am going to keep the search.
from chrome-extensions-samples.
closing old issues.
from chrome-extensions-samples.
Related Issues (20)
- JiwJiw73
- how to specify the content security policy for content script HOT 1
- <!-- Thank you for submitting a Pull Request. Please:
- Kit-khat
- Can't call chrome.desktopCapture.chooseDesktopMedia from serviceWorker without target tab. HOT 1
- .github/CODE_OF_CONDUCT.md
- Chrome 121.0.6167.86 version have a bug some website line Some table lines are not aligned, chrome 120.x not have this BUG same code HOT 4
- How to open devTools after open a new tab? HOT 1
- continuous recording sample - allow user to select media stream tab or window ? HOT 1
- Manifest V3 declarativeNetRequest redirect sample is completely broken on latest chrome 121 HOT 11
- The Quick Start tutorial "quick-api-reference" sample doesn't work HOT 15
- Samples for chrome.management HOT 2
- Network preview tab override HOT 2
- How i can use extensions to hide maximize、minimize HOT 1
- Sample for chrome.types HOT 1
- Sample for chrome.desktopCapture
- Sample for chrome.offscreen HOT 1
- A CI to check for grammer mistake in the `.md` files HOT 8
- Adding a pull request template to the repository as like issue template HOT 2
- CEO
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chrome-extensions-samples.