Push notification

Thursday, June 30, 2022 9:38:48 AM
  • Posted: Monday, May 16, 2022 12:40 PM
  • 3
Hello, I tested grandnode 2.0 and i have a small problem. When I send push notification my url address don't change, he always set on hompage.
0
  • Posted: Monday, May 16, 2022 6:44 PM
  • Team
  • 113
I've just check it on my test environment and everything looks fine.
You can check in on website: https://grandnode.azurewebsites.net/
0
  • Posted: Tuesday, May 17, 2022 10:27 AM
  • 3
Thanks for response. I can't check it on your enviroment becouse i haven't admin credetials. Maybe on my enviroment i have wrong version node.js or typescript. I have https certificate, becouse push notification show me but alwas redirect to home url not url from shop.
0
  • Posted: Wednesday, May 18, 2022 7:30 AM
  • 3
I resolve my problem by add to file GrandNode2-2.0.0_Source\src\Web\Grand.Web\wwwroot\theme\script\public.push.notifications.js new function.

var notification = new Notification(notificationTitle, notificationOptions);
            notification.onclick = function (event) {
                event.preventDefault(); // prevent the browser from focusing the Notification's tab
                window.location.assign(payload.notification.click_action);


This section resolve my problem.
0
back to top
Filters