Post

2 followers Follow
0
Avatar

Notifications trigger randomly from new items created via API

Hello, I've noticed some strange behaviour.

I create items via API, using PodioItem::create. I am not specifying any paremeters (hook or silent), so the default silent => false should apply.

Sometimes when items are created, I get notifications from the app, sometimes not. Just today I have had multiple cases of both happening. What gives?

Henrik Huhtinen

Official comment

Avatar

Hi Henrik,

Notifications are "throttled", ie. if there's a lot of activity on an item in a very short amount of time, the API will stop generating notifications for a short while. This is to avoid overloading the user completely with notifications about the same thing.

Specifically for you case which is about notifications about creating items, bear in mind that you have to follow the app where you create the item to get notified about newly created items.

Casper Fabricius

Please sign in to leave a comment.

3 comments

0
Avatar

Thank you Casper, that explains the behaviour. How wide is the throttling, I mean is it per item, per app, per user..?

Henrik Huhtinen 0 votes
0
Avatar

Henrik, the throttling is per "notification reference". Ie. it is specific to the individual item, app etc. You will never miss a notification on one item, just because notifications on another item was throttled.

Casper Fabricius 0 votes