edgardmessias / browsernotification

This plugin allow your browser to show notifications for GLPI
http://plugins.glpi-project.org/#/plugin/browsernotification
Other
8 stars 6 forks source link

Send notifications to mobile application #17

Open lexcorp opened 7 years ago

lexcorp commented 7 years ago

Hi Edgar,

This notifications are send to mobiles?

edgardmessias commented 7 years ago

Not currently.

For this it is necessary to work with webworker (Only with HTTPS) Or use third party service to push notification

lexcorp commented 7 years ago

Hello Edgard,

Will you have any examples that you can share? I currently have a development environment with SSL configured.

edgardmessias commented 7 years ago

See https://developers.google.com/web/fundamentals/getting-started/codelabs/push-notifications/

edgardmessias commented 7 years ago

Alternative: https://onesignal.com/

lexcorp commented 7 years ago

Hi Edgar,

I was analyzing the code of the plugin, since I intend to send notifications mobile devices, I have a couple of doubts:

Have you created new tables or fields in existing GLPI tables?

When I login with a user and receive a notification, how do you manage that the notification is no longer displayed?

Could you help me with these doubts?

edgardmessias commented 7 years ago

Have you created new tables or fields in existing GLPI tables?

No, I only use SQL to return the list

When I login with a user and receive a notification, how do you manage that the notification is no longer displayed?

I use the localStorage of the browser, to save the last identifier shown

For your case, I would recommend working with the hooks ("item_add", "item_update", "item_delete", .....)

lexcorp commented 7 years ago

Thank you very much Edgard...