Jump to content
View in the app

A better way to browse. Learn more.

Pulseway

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

Hi 

 

We're writing a little plugin that sends notifications.  The problem is that the plugin now spams notifications and does not take heed of the CanSendNotification. I get 40 of the same message appearing.

 

 

    public override void PluginDataCheck()
    {
       if (CanSendNotifications)
       {
           SendNotificationToAllDevices("bLAHbLAH", NotificationPriority.CRITICAL);
       }
    }

 

Am I misunderstanding what the cansendnotifications property means?  I am under the impression that this property will switch to false after I send the first time? And only after viewing the message will it revert back to true?

 

Kind Regards

Frank

 

This is no longer the case - the last API update removes this restriction. 

CanSendNotifications property is still valid for cases when the agent itself won't be able to send notifications from other reasons and you should still check that.

 

We will add in the next release a way of setting that notification so that it's not allowing duplicates like:

public bool SendNotificationToAllDevices(string message, NotificationPriority priority, bool allowMultipleNotifications = false)

 

 

However, CanSendNotifications will still return true unless the agent itself is not allowed to send any notifications.

For now, yes.

 

The change has been implemented and will be included in the next release.

Create an account or sign in to comment

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.