Desktop Browser notification, global listener
I want to set a listner to catch information created by desktop push notification from any site in chrome.
Catch all notifications created on my browser from all opened sites
for example:
- open this link in chrome:
https://davidwalsh.name/demo/notifications-api.php
- click "Show a Notification"
I want to catch that notification information and display it in my app.
This is just an example.
Is there a way that I can catch notification and use its title and body text to filter out something in my App?
javascript
add a comment |
I want to set a listner to catch information created by desktop push notification from any site in chrome.
Catch all notifications created on my browser from all opened sites
for example:
- open this link in chrome:
https://davidwalsh.name/demo/notifications-api.php
- click "Show a Notification"
I want to catch that notification information and display it in my app.
This is just an example.
Is there a way that I can catch notification and use its title and body text to filter out something in my App?
javascript
2
Aren't notifications sandboxed? I don't think you are allowed to access other sites notifications. Huge privacy concerns around that...
– Charlie Fish
Dec 28 '18 at 0:20
I want to use notifications that are displaying on my local browser.
– Haisam Rasool
Dec 28 '18 at 0:21
I don't think you understand. Based on your question, you are asking how you can access browser notifications that other sites created/sent. That is a massive security and privacy concern, and therefor is not allowed.
– Charlie Fish
Dec 28 '18 at 0:23
I don't think that would be a security and privacy concern to make listener to those notifications which are displaying on my pc locally. If you notice, windows notification bar also have a global listener to listen and display notification message and tittle. You might be right, but as in android development we can create a global listener to listen to those which are send to our device. If some information is displaying on my pc, I don't think using that information would be a security issue. but appreciate your answer.
– Haisam Rasool
Dec 28 '18 at 0:37
You don't think being able to see notifications from other websites that they create/send is a privacy concern? I mean of course Android supports it since Android has 0 sense of privacy at all. But just look at iOS. Reading other apps push notifications would NEVER be allowed. Just imagine someone sends you a message, and having other apps be allowed to read that. Huge privacy concerns with that. I didn't give access for other apps to be able to read my notifications. So why should they be allowed to?
– Charlie Fish
Dec 28 '18 at 0:47
add a comment |
I want to set a listner to catch information created by desktop push notification from any site in chrome.
Catch all notifications created on my browser from all opened sites
for example:
- open this link in chrome:
https://davidwalsh.name/demo/notifications-api.php
- click "Show a Notification"
I want to catch that notification information and display it in my app.
This is just an example.
Is there a way that I can catch notification and use its title and body text to filter out something in my App?
javascript
I want to set a listner to catch information created by desktop push notification from any site in chrome.
Catch all notifications created on my browser from all opened sites
for example:
- open this link in chrome:
https://davidwalsh.name/demo/notifications-api.php
- click "Show a Notification"
I want to catch that notification information and display it in my app.
This is just an example.
Is there a way that I can catch notification and use its title and body text to filter out something in my App?
javascript
javascript
asked Dec 28 '18 at 0:18
Haisam Rasool
11
11
2
Aren't notifications sandboxed? I don't think you are allowed to access other sites notifications. Huge privacy concerns around that...
– Charlie Fish
Dec 28 '18 at 0:20
I want to use notifications that are displaying on my local browser.
– Haisam Rasool
Dec 28 '18 at 0:21
I don't think you understand. Based on your question, you are asking how you can access browser notifications that other sites created/sent. That is a massive security and privacy concern, and therefor is not allowed.
– Charlie Fish
Dec 28 '18 at 0:23
I don't think that would be a security and privacy concern to make listener to those notifications which are displaying on my pc locally. If you notice, windows notification bar also have a global listener to listen and display notification message and tittle. You might be right, but as in android development we can create a global listener to listen to those which are send to our device. If some information is displaying on my pc, I don't think using that information would be a security issue. but appreciate your answer.
– Haisam Rasool
Dec 28 '18 at 0:37
You don't think being able to see notifications from other websites that they create/send is a privacy concern? I mean of course Android supports it since Android has 0 sense of privacy at all. But just look at iOS. Reading other apps push notifications would NEVER be allowed. Just imagine someone sends you a message, and having other apps be allowed to read that. Huge privacy concerns with that. I didn't give access for other apps to be able to read my notifications. So why should they be allowed to?
– Charlie Fish
Dec 28 '18 at 0:47
add a comment |
2
Aren't notifications sandboxed? I don't think you are allowed to access other sites notifications. Huge privacy concerns around that...
– Charlie Fish
Dec 28 '18 at 0:20
I want to use notifications that are displaying on my local browser.
– Haisam Rasool
Dec 28 '18 at 0:21
I don't think you understand. Based on your question, you are asking how you can access browser notifications that other sites created/sent. That is a massive security and privacy concern, and therefor is not allowed.
– Charlie Fish
Dec 28 '18 at 0:23
I don't think that would be a security and privacy concern to make listener to those notifications which are displaying on my pc locally. If you notice, windows notification bar also have a global listener to listen and display notification message and tittle. You might be right, but as in android development we can create a global listener to listen to those which are send to our device. If some information is displaying on my pc, I don't think using that information would be a security issue. but appreciate your answer.
– Haisam Rasool
Dec 28 '18 at 0:37
You don't think being able to see notifications from other websites that they create/send is a privacy concern? I mean of course Android supports it since Android has 0 sense of privacy at all. But just look at iOS. Reading other apps push notifications would NEVER be allowed. Just imagine someone sends you a message, and having other apps be allowed to read that. Huge privacy concerns with that. I didn't give access for other apps to be able to read my notifications. So why should they be allowed to?
– Charlie Fish
Dec 28 '18 at 0:47
2
2
Aren't notifications sandboxed? I don't think you are allowed to access other sites notifications. Huge privacy concerns around that...
– Charlie Fish
Dec 28 '18 at 0:20
Aren't notifications sandboxed? I don't think you are allowed to access other sites notifications. Huge privacy concerns around that...
– Charlie Fish
Dec 28 '18 at 0:20
I want to use notifications that are displaying on my local browser.
– Haisam Rasool
Dec 28 '18 at 0:21
I want to use notifications that are displaying on my local browser.
– Haisam Rasool
Dec 28 '18 at 0:21
I don't think you understand. Based on your question, you are asking how you can access browser notifications that other sites created/sent. That is a massive security and privacy concern, and therefor is not allowed.
– Charlie Fish
Dec 28 '18 at 0:23
I don't think you understand. Based on your question, you are asking how you can access browser notifications that other sites created/sent. That is a massive security and privacy concern, and therefor is not allowed.
– Charlie Fish
Dec 28 '18 at 0:23
I don't think that would be a security and privacy concern to make listener to those notifications which are displaying on my pc locally. If you notice, windows notification bar also have a global listener to listen and display notification message and tittle. You might be right, but as in android development we can create a global listener to listen to those which are send to our device. If some information is displaying on my pc, I don't think using that information would be a security issue. but appreciate your answer.
– Haisam Rasool
Dec 28 '18 at 0:37
I don't think that would be a security and privacy concern to make listener to those notifications which are displaying on my pc locally. If you notice, windows notification bar also have a global listener to listen and display notification message and tittle. You might be right, but as in android development we can create a global listener to listen to those which are send to our device. If some information is displaying on my pc, I don't think using that information would be a security issue. but appreciate your answer.
– Haisam Rasool
Dec 28 '18 at 0:37
You don't think being able to see notifications from other websites that they create/send is a privacy concern? I mean of course Android supports it since Android has 0 sense of privacy at all. But just look at iOS. Reading other apps push notifications would NEVER be allowed. Just imagine someone sends you a message, and having other apps be allowed to read that. Huge privacy concerns with that. I didn't give access for other apps to be able to read my notifications. So why should they be allowed to?
– Charlie Fish
Dec 28 '18 at 0:47
You don't think being able to see notifications from other websites that they create/send is a privacy concern? I mean of course Android supports it since Android has 0 sense of privacy at all. But just look at iOS. Reading other apps push notifications would NEVER be allowed. Just imagine someone sends you a message, and having other apps be allowed to read that. Huge privacy concerns with that. I didn't give access for other apps to be able to read my notifications. So why should they be allowed to?
– Charlie Fish
Dec 28 '18 at 0:47
add a comment |
1 Answer
1
active
oldest
votes
Notifications are sandboxed, which means you are limited in access to them. Browsers don't give you access to see or access notifications created/sent by other websites. You are limited to the API specification for your site only.
It would create massive privacy and security concerns if you were allowed to see all browser notifications from all sites for a user.
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53952304%2fdesktop-browser-notification-global-listener%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Notifications are sandboxed, which means you are limited in access to them. Browsers don't give you access to see or access notifications created/sent by other websites. You are limited to the API specification for your site only.
It would create massive privacy and security concerns if you were allowed to see all browser notifications from all sites for a user.
add a comment |
Notifications are sandboxed, which means you are limited in access to them. Browsers don't give you access to see or access notifications created/sent by other websites. You are limited to the API specification for your site only.
It would create massive privacy and security concerns if you were allowed to see all browser notifications from all sites for a user.
add a comment |
Notifications are sandboxed, which means you are limited in access to them. Browsers don't give you access to see or access notifications created/sent by other websites. You are limited to the API specification for your site only.
It would create massive privacy and security concerns if you were allowed to see all browser notifications from all sites for a user.
Notifications are sandboxed, which means you are limited in access to them. Browsers don't give you access to see or access notifications created/sent by other websites. You are limited to the API specification for your site only.
It would create massive privacy and security concerns if you were allowed to see all browser notifications from all sites for a user.
answered Dec 28 '18 at 0:24
Charlie Fish
5,43942971
5,43942971
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53952304%2fdesktop-browser-notification-global-listener%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
2
Aren't notifications sandboxed? I don't think you are allowed to access other sites notifications. Huge privacy concerns around that...
– Charlie Fish
Dec 28 '18 at 0:20
I want to use notifications that are displaying on my local browser.
– Haisam Rasool
Dec 28 '18 at 0:21
I don't think you understand. Based on your question, you are asking how you can access browser notifications that other sites created/sent. That is a massive security and privacy concern, and therefor is not allowed.
– Charlie Fish
Dec 28 '18 at 0:23
I don't think that would be a security and privacy concern to make listener to those notifications which are displaying on my pc locally. If you notice, windows notification bar also have a global listener to listen and display notification message and tittle. You might be right, but as in android development we can create a global listener to listen to those which are send to our device. If some information is displaying on my pc, I don't think using that information would be a security issue. but appreciate your answer.
– Haisam Rasool
Dec 28 '18 at 0:37
You don't think being able to see notifications from other websites that they create/send is a privacy concern? I mean of course Android supports it since Android has 0 sense of privacy at all. But just look at iOS. Reading other apps push notifications would NEVER be allowed. Just imagine someone sends you a message, and having other apps be allowed to read that. Huge privacy concerns with that. I didn't give access for other apps to be able to read my notifications. So why should they be allowed to?
– Charlie Fish
Dec 28 '18 at 0:47