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

[Question]: How to customize click behaviour on React or Python SDK #1160

Closed
adrienthiery opened this issue Feb 26, 2024 · 1 comment
Closed

Comments

@adrienthiery
Copy link

adrienthiery commented Feb 26, 2024

How can we help?

Hi there,
I saw in the documentation that OneSignal offers customization on the "Click behaviour" (https://documentation.onesignal.com/docs/web-push-options#click-behavior) but I can't find any mention anywhere in the platform specific documentation.

Namely:

there are several possible ways the browser can behave that you can configure:

  • Exact Navigate (default) - If the notification's exact URL (e.g. example.com/product) matches a tab that the browser already has open, the browser will navigate to the notification's URL in that tab.
  • Origin Navigate - If the notification's origin (e.g. example.com) matches a tab that the browser already has open, the browser will navigate to the notification's URL in that tab.
  • Exact Focus - If the notification's exact URL (e.g. example.com/product) matches a tab that the browser already has open, the browser will focus on that tab, but not refresh the page.
  • Origin Focus - If the notification's origin (e.g. example.com) matches a tab that the browser already has open, the browser will focus on that tab, but not refresh the page.

I checked:

Any idea where I can find that info?
Thanks a lot!

@adrienthiery
Copy link
Author

I think I finally found something that relates in the JS docs : https://documentation.onesignal.com/docs/web-sdk#initializing-the-sdk

image

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

No branches or pull requests

1 participant