I'd like to add a notification system in my plugin. Currently, I send email to photographers when something happens.
But I'd like to allow them to choose either email or notification and show popup instead of emails.
I was thinking to add a task to send a request to my server every hour or so (with an infinite loop and sleep). But I'm not sure that it's nice and efficient.
Any ideas? Or perhaps that Lightroom sdk provide something?
Your plugin can open a dialog at any point with LrDialogs.presentModalDialog() or .message(), even if the plugin is running in background.
If you want to use the operating system's notification mechanism, your plugin could invoke a command-line program. A quick Google suggests: