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

Pushy fires notification from different app #10

Open
failhunterby opened this issue Jan 30, 2024 · 5 comments
Open

Pushy fires notification from different app #10

failhunterby opened this issue Jan 30, 2024 · 5 comments

Comments

@failhunterby
Copy link

I have 2 pushy apps - they works on web on different domain names - so i make Pushy.register to different apps (different app_id), but then one of them get notification - it fired in both tabs. How can i encounter it?

@pushy
Copy link
Owner

pushy commented Jan 31, 2024

Hi @failhunterby,
Thanks for creating this issue. We'd be glad to assist.

Unfortunately, we weren't able to reproduce the issue. A few investigative questions:

  1. Can you confirm that your browser was assigned two unique Pushy device tokens, one for each website?
  2. Can you confirm the issue occurred when sending a notification to just one device token at a time, and that you aren't sending to a Pub/Sub topic?
  3. By firing in both tabs, do you mean that the notification listener was invoked in both websites for a single notification, resulting in an alert dialog in both tabs?

Thanks for your help in investigating this issue further.

@failhunterby
Copy link
Author

@pushy thx for your response.

  1. Yep, its different (unique) device tokens for each website
  2. Nope, its sending via topic (they are same on both)
  3. the notification listener was invoked in both websites for a single notification, resulting in an alert dialog in both tabs

@pushy
Copy link
Owner

pushy commented Feb 1, 2024

Hi @failhunterby,
Thanks for clarifying.

  1. Are both devices subscribed to the same exact topic?
  2. Did you specify two different Pushy App IDs in both websites when calling Pushy.register()?
Pushy.register({ appId: 'YOUR_APP_ID' })

@failhunterby
Copy link
Author

failhunterby commented Feb 1, 2024

Hi @failhunterby, Thanks for clarifying.

  1. Are both devices subscribed to the same exact topic?
  2. Did you specify two different Pushy App IDs in both websites when calling Pushy.register()?
Pushy.register({ appId: 'YOUR_APP_ID' })

Topic is exact same, app id is different - i checked it twice (as code and in localStorage)

@pushy
Copy link
Owner

pushy commented Feb 1, 2024

Hi @failhunterby,
Can you please send us both Pushy device tokens to [email protected] and we'll investigate further?

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

2 participants