Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

browser notification click url #11

Closed
superainovacoes opened this issue Aug 10, 2016 · 8 comments
Closed

browser notification click url #11

superainovacoes opened this issue Aug 10, 2016 · 8 comments

Comments

@superainovacoes
Copy link

superainovacoes commented Aug 10, 2016

Hi, in the docs we cant set the click url for the browser notification.

We want to set differents urls for each notification.

example:

notification 1 - token A - chrome_url = somesite1.com notification 2 - token B - chrome url = somesite1.com/foo notification 3 = token C - chrome url = somesite1.com/foo/bar

In developer words, we are asking for a "chrome_url"/"firefox_url"/"safari_url" parameters to change the click url destionation for each notification.

https://community.pushwoosh.com/questions/3766/browser-notification-click-url

@grandecomplex
Copy link

grandecomplex commented Apr 6, 2017

This is a requirement. Can we get a date for this feature otherwise I'm afraid we'll have to move off?

@synth
Copy link

synth commented Apr 7, 2017

+1 what's the status of this?

@shaders
Copy link

shaders commented Apr 7, 2017

the work is in progress, I'll update on Monday

@wfhm
Copy link
Member

wfhm commented Apr 11, 2017

Hi,

Will the following workaround cover your needs?

https://community.pushwoosh.com/questions/3766/browser-notification-click-url

@synth
Copy link

synth commented Apr 11, 2017

The post you link to references a link to some JSONP example, but if you follow the link, it leads to a 404 page

@viridanti
Copy link

Sorry, updated the link. Here it is:

JSON request example

@wfhm
Copy link
Member

wfhm commented Sep 4, 2018

You can use the "chrome_root_params" (or safari/firefox) object with "l" or "link" key to pass a custom link:

{
    "request": {
        "application": "APPLICATION_CODE",
        "auth": "API_ACCESS_TOKEN",
        "notifications": [{
            "send_date": "now", // YYYY-MM-DD HH:mm  OR 'now'
            "ignore_user_timezone": true, // or false
            "content": "Hello world!",
            "link": "https://pushwoosh.com", //default link
            "chrome_root_params":{"link":"https://google.com"}, //custom Chrome link
            "safari_root_params":{"link":"https://apple.com"}, //custom Safari link
            "firefox_root_params":{"link":"https://mozilla.org"}, //custom Firefox link
        }]
    }
}

@wfhm wfhm closed this as completed Sep 4, 2018
@ipehimanshu
Copy link

ipehimanshu commented Jul 19, 2021

ok and using which event we can trace like we need to open link in new tab or stay user in same window ?
@wfhm can you help us
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants