Discussion:
[chromium-dev] how can i support win10 native notification?
q***@gmail.com
2018-11-05 02:10:34 UTC
Permalink
hi all,
as we know,chrome 69 support win10 native notification,I download
chrome 69.0.3497.81 code and build them.

i open the "Enable native notifications". but i cann't find the
notification on the win10 message center on the right corner.

i track the code.no errors. and at last called
"notifier->Show(toast.Get())" function. everything looks like ok,but no
notifications on the win10 native

message center. pls help me.
--
--
Chromium Developers mailing list: chromium-***@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev+***@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/65467b1e-f57d-4d9e-94a3-d8b1e376009a%40chromium.org.
Peter Beverloo
2018-11-05 17:39:29 UTC
Permalink
bcc:chromium-dev

Do you know what status code was returned by the Show() function? It might
be available in the system log too.

Thanks,
Peter
Post by q***@gmail.com
hi all,
as we know,chrome 69 support win10 native notification,I download
chrome 69.0.3497.81 code and build them.
i open the "Enable native notifications". but i cann't find the
notification on the win10 message center on the right corner.
i track the code.no errors. and at last called
"notifier->Show(toast.Get())" function. everything looks like ok,but no
notifications on the win10 native
message center. pls help me.
--
--
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups
"Chromium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an
To view this discussion on the web visit
https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/65467b1e-f57d-4d9e-94a3-d8b1e376009a%40chromium.org
<https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/65467b1e-f57d-4d9e-94a3-d8b1e376009a%40chromium.org?utm_medium=email&utm_source=footer>
.
--
--
Chromium Developers mailing list: chromium-***@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev+***@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/CA%2Btae998-rEudE%3DjJfg-cWi4fW5yWCVjiQn6TGUTv78-n-C89A%40mail.gmail.com.
q***@gmail.com
2018-11-06 07:55:19 UTC
Permalink
it's return "S_OK",I found that the toast activator CLSID is
“{635EFA6F-08D6-4EC9-BD14-8A0FDE975159}”but Google Chrome has another
CLSIDS. i don't know where these CLSIDS come from?

or the win10 system restrict these CLSIDS using? it means that we cann't
use this id “{635EFA6F-08D6-4EC9-BD14-8A0FDE975159}” that cause the
notifications cann't shown in the windows message center.

圚 2018幎11月6日星期二 UTC+8䞊午1:40:38Peter Beverloo写道
Post by Peter Beverloo
bcc:chromium-dev
Do you know what status code was returned by the Show() function? It might
be available in the system log too.
Thanks,
Peter
Post by q***@gmail.com
hi all,
as we know,chrome 69 support win10 native notification,I download
chrome 69.0.3497.81 code and build them.
i open the "Enable native notifications". but i cann't find the
notification on the win10 message center on the right corner.
i track the code.no errors. and at last called
"notifier->Show(toast.Get())" function. everything looks like ok,but no
notifications on the win10 native
message center. pls help me.
--
--
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups
"Chromium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an
To view this discussion on the web visit
https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/65467b1e-f57d-4d9e-94a3-d8b1e376009a%40chromium.org
<https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/65467b1e-f57d-4d9e-94a3-d8b1e376009a%40chromium.org?utm_medium=email&utm_source=footer>
.
--
--
Chromium Developers mailing list: chromium-***@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev+***@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/f4034140-de5b-4dbb-bc71-459b558cb117%40chromium.org.
Finnur Thorarinsson
2018-11-06 10:24:56 UTC
Permalink
This post might be inappropriate. Click to display it.
'Xi Cheng' via Chromium-dev
2018-11-06 21:11:08 UTC
Permalink
Yea, what Finnur said.

Each Chrome channel has its own toast activator CLSID so there is no issue
here. If you build chromium locally, you also need to build
mini_installer.exe and run it to install chromium. This will create a start
menu shortcut for chromium on your machine, which is required for native
notifications to work. Note that this shortcut requirement is exposed by
Microsoft, not us.

Let us know if this works for you.

Thanks!
Post by Finnur Thorarinsson
As I recall, the Windows notification center will silently drop
notifications on the floor (and return S_OK) if the environment isn't setup
correctly.
It sounds like you are building Chromium for testing this, so be aware
that there are additional steps needed to properly setup the environment to
support native notifications. For example, the Chrome shortcut has to exist
in the Start menu and have the right CLSID embedded in it (must match what
you are using in code). A COM server registration of that CLSID is also
need -- although I think that's only to support the use case of a
notification coming in when Chrome isn't running. Both of those additional
steps are a requirement of Windows for notifications to fully function.
Good news is: I think you can simply build and run the Chrome installer
once on your machine to set this up correctly and then continue hacking on
Chromium as before. Xi can probably tell you exactly what you need to run
(he's cc-ed).
Post by q***@gmail.com
it's return "S_OK",I found that the toast activator CLSID is
“{635EFA6F-08D6-4EC9-BD14-8A0FDE975159}”but Google Chrome has another
CLSIDS. i don't know where these CLSIDS come from?
or the win10 system restrict these CLSIDS using? it means that we cann't
use this id “{635EFA6F-08D6-4EC9-BD14-8A0FDE975159}” that cause the
notifications cann't shown in the windows message center.
圚 2018幎11月6日星期二 UTC+8䞊午1:40:38Peter Beverloo写道
Post by Peter Beverloo
bcc:chromium-dev
Do you know what status code was returned by the Show() function? It
might be available in the system log too.
Thanks,
Peter
Post by q***@gmail.com
hi all,
as we know,chrome 69 support win10 native notification,I
download chrome 69.0.3497.81 code and build them.
i open the "Enable native notifications". but i cann't find the
notification on the win10 message center on the right corner.
i track the code.no errors. and at last called
"notifier->Show(toast.Get())" function. everything looks like ok,but no
notifications on the win10 native
message center. pls help me.
--
--
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google
Groups "Chromium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send
To view this discussion on the web visit https://groups.google.com/a/
chromium.org/d/msgid/chromium-dev/65467b1e-f57d-4d9e-94a3-
d8b1e376009a%40chromium.org
<https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/65467b1e-f57d-4d9e-94a3-d8b1e376009a%40chromium.org?utm_medium=email&utm_source=footer>
.
--
--
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups
"Chromium-dev" group.
To view this discussion on the web visit https://groups.google.com/a/
chromium.org/d/msgid/chromium-dev/f4034140-de5b-4dbb-bc71-
459b558cb117%40chromium.org
<https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/f4034140-de5b-4dbb-bc71-459b558cb117%40chromium.org?utm_medium=email&utm_source=footer>
.
--
--
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups
"Chromium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an
To view this discussion on the web visit https://groups.google.com/a/
chromium.org/d/msgid/chromium-dev/CAB2L5-YQeRgj_M2TmmSF4k6-
fSbcTgu7GUARShQLW-Y5ePO1Hw%40mail.gmail.com
<https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/CAB2L5-YQeRgj_M2TmmSF4k6-fSbcTgu7GUARShQLW-Y5ePO1Hw%40mail.gmail.com?utm_medium=email&utm_source=footer>
.
--
--
Chromium Developers mailing list: chromium-***@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev+***@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/CAAC2bK9p5bWuAHcsQMOWkL%3D1Umt0BYu4hCXLzqj8EfRGN9n6Dg%40mail.gmail.com.
'Xi Cheng' via Chromium-dev
2018-11-06 21:18:19 UTC
Permalink
<Dropping chromium-discuss group as it doesn't seem to exist.>

Yea, what Finnur said.

Each Chrome channel has its own toast activator CLSID so there is no issue
here. If you build chromium locally, you also need to build
mini_installer.exeand run it to install chromium. This will create a start
menu shortcut for chromium on your machine, which is required for native
notifications to work. Note that this shortcut requirement is exposed by
Microsoft, not us.

Let us know if this works for you.

Thanks!
Post by 'Xi Cheng' via Chromium-dev
Yea, what Finnur said.
Each Chrome channel has its own toast activator CLSID so there is no issue
here. If you build chromium locally, you also need to build
mini_installer.exe and run it to install chromium. This will create a
start menu shortcut for chromium on your machine, which is required for
native notifications to work. Note that this shortcut requirement is
exposed by Microsoft, not us.
Let us know if this works for you.
Thanks!
Post by Finnur Thorarinsson
As I recall, the Windows notification center will silently drop
notifications on the floor (and return S_OK) if the environment isn't setup
correctly.
It sounds like you are building Chromium for testing this, so be aware
that there are additional steps needed to properly setup the environment to
support native notifications. For example, the Chrome shortcut has to exist
in the Start menu and have the right CLSID embedded in it (must match what
you are using in code). A COM server registration of that CLSID is also
need -- although I think that's only to support the use case of a
notification coming in when Chrome isn't running. Both of those additional
steps are a requirement of Windows for notifications to fully function.
Good news is: I think you can simply build and run the Chrome installer
once on your machine to set this up correctly and then continue hacking on
Chromium as before. Xi can probably tell you exactly what you need to run
(he's cc-ed).
Post by q***@gmail.com
it's return "S_OK",I found that the toast activator CLSID is
“{635EFA6F-08D6-4EC9-BD14-8A0FDE975159}”but Google Chrome has another
CLSIDS. i don't know where these CLSIDS come from?
or the win10 system restrict these CLSIDS using? it means that we cann't
use this id “{635EFA6F-08D6-4EC9-BD14-8A0FDE975159}” that cause the
notifications cann't shown in the windows message center.
圚 2018幎11月6日星期二 UTC+8䞊午1:40:38Peter Beverloo写道
Post by Peter Beverloo
bcc:chromium-dev
Do you know what status code was returned by the Show() function? It
might be available in the system log too.
Thanks,
Peter
Post by q***@gmail.com
hi all,
as we know,chrome 69 support win10 native notification,I
download chrome 69.0.3497.81 code and build them.
i open the "Enable native notifications". but i cann't find the
notification on the win10 message center on the right corner.
i track the code.no errors. and at last called
"notifier->Show(toast.Get())" function. everything looks like ok,but no
notifications on the win10 native
message center. pls help me.
--
--
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google
Groups "Chromium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send
To view this discussion on the web visit
https://groups.google.com/a/chromium.org/d/msgid/chromium-de
v/65467b1e-f57d-4d9e-94a3-d8b1e376009a%40chromium.org
<https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/65467b1e-f57d-4d9e-94a3-d8b1e376009a%40chromium.org?utm_medium=email&utm_source=footer>
.
--
--
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google
Groups "Chromium-dev" group.
To view this discussion on the web visit https://groups.google.com/a/ch
romium.org/d/msgid/chromium-dev/f4034140-de5b-4dbb-bc71-459b
558cb117%40chromium.org
<https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/f4034140-de5b-4dbb-bc71-459b558cb117%40chromium.org?utm_medium=email&utm_source=footer>
.
--
--
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups
"Chromium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an
To view this discussion on the web visit https://groups.google.com/a/ch
romium.org/d/msgid/chromium-dev/CAB2L5-YQeRgj_M2TmmSF4k6-fSb
cTgu7GUARShQLW-Y5ePO1Hw%40mail.gmail.com
<https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/CAB2L5-YQeRgj_M2TmmSF4k6-fSbcTgu7GUARShQLW-Y5ePO1Hw%40mail.gmail.com?utm_medium=email&utm_source=footer>
.
--
--
Chromium Developers mailing list: chromium-***@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev+***@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/CAAC2bK_o4XG7hooDg0ieyd7iJoLzX339E28nsuEKc8CuU4e2NA%40mail.gmail.com.
Loading...