Skip to content

Once the user clicks on the received notification, the webpage should be reloaded #182

@seme1

Description

@seme1

I used to have this on my website working just fine. Today, I noticed that it's repeatedly refreshing the page forever (infinite loop). It's supposed to refresh a certain web page only once, and only when the user clicks on the received notification.

OneSignal.push(["addListenerForNotificationOpened", function(data) { console.log("Received NotificationOpened:", data); if(location.href.substr(location.href.lastIndexOf("/")+1).startsWith("read.php")){ window.location.href = window.location.href ; } }]);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions