Can Anvil do push updates yet? Maybe add events on database I/O ? OnRowAdd, OnRowDelete, which could tie to Server side or Client side code?
Just some ideas, I have seen this in other solutions before moving to anvil
Can Anvil do push updates yet? Maybe add events on database I/O ? OnRowAdd, OnRowDelete, which could tie to Server side or Client side code?
Just some ideas, I have seen this in other solutions before moving to anvil
I agree, that would be a great option to have. For now, I’m writing my own (crude) wrapper around Anvil’s routines, for similar purposes.
Such triggers are just a means to an end. For example, one can then implement referential integrity (and other data integrity) checks, above and beyond what Anvil has built-in.
My wrapper is purely server-side. I know of no way for the Server code to call Client code. Logically, with potentially thousands of instances running in browsers around the world, which running instance would it call?
You have to go with third-party messaging APIs for true push notifications. There are some posts on the forum of folks who’ve played with different ones (e.g. Firebase messaging).
be nice to have a native one for anvil, plus the database triggers for client/server has huge potential
I think it’s one of those things that needs to be enabled for most browsers and phone os’s independently.
Then after all of that, it needs literally continuous development because it constantly breaks whenever X/Y/Z browser/os does some kind of an update to add/remove features.
It could be that’s why most of the time users end up with a third party whos only product or major feature includes push notifications.