muraliwebworld / push-notification-plugin-for-wordpress-websites

Push Notification WordPress plugin in php, javascript using Firebase httpv1 for websites, Android/IOS mobile apps with PWA progressive web app
https://wordpress.org/plugins/push-notification-for-post-and-buddypress/
GNU General Public License v3.0
13 stars 1 forks source link

Tokens and subscription via Perfecty #15

Open cvrle77 opened 1 month ago

cvrle77 commented 1 month ago

I had to record a video of this, so you can fully understand what I am saying, video talks better than me. It is a bit longer, but I had to cover all possible scenarios to understand myself what is going on.

In a video, I went through different scenarios, and in the last one, you can see that when custom prompt is activated, user doesn't get token. He gets custom prompt to subscribe for the second time. https://drive.google.com/file/d/1g760xb0FZXUvSnR8FWN-6Ur1vCP0qbQ3/view?usp=drive_link

Subscriber who subscribed while Perfecty was active for subscription, doesn't get token when they enter the site, if custom prompt in PNFPB is activated. Only if custom prompt is deactivated, user automatically gets token. Later, if you delete token and custom prompt is activated, it doesn't matter, user will get token with custom prompt once he hits the page.

I had to use environment free of caching to figure this completely.

Second thing is: anyone subscribed via Perfecty is still subscribed via Perfecty, and if I send notification via perfecty, they will receive it. If I send notification via PNFPB, they will receive it.

Is it possible to fix the part with custom prompt, where users don't get token, if custom prompt is turned on and they are subscribed via Perfecty?

muraliwebworld commented 1 month ago

I have watched your video and I will re-create the problem here in my site, i will look into it. I will get back to you.