PWA Push notifications

Hello,
I am building a news app, and I need to push news notifications to my users. The news is automatically updated in my app, and I want to send these updates as notifications to my users’ devices.

Do you have any suggestions?

I see that the PWA (Progressive Web App) workflow is already integrated, but I’m not sure how it works, and I couldn’t find a video explaining this topic.

Hi @qombellah

We are working to provide documentation for the PWA plugin soon. The PWA plugin currently supports local notifications only. They can only be triggered when your app is open or running in the background on the user’s device. If a user locks their screen while your app is still open in the background, they will receive the notification, but not if the app is fully closed.

The ‘‘Send notification’’ action includes the following fields:

  • Title: Main headline of the notification
  • Body: Detailed content
  • Icon URL: URL of a small icon (optional)
  • Image URL: URL of a larger image (optional)
  • Tag: Identifier for grouping or replacing notifications
  • Data: Additional JSON-formatted data
  • Vibration Pattern: Array of numbers defining vibration behavior.

A vibration pattern of [200, 100, 300, 200] means:

  • Vibrate for 0.2 seconds
  • Pause for 0.1 seconds
  • Vibrate for 0.3 seconds
  • Pause for 0.2 seconds

I will let you know here when we publish the official documentation, which is imminent.

2 Likes

Thank you very much

Hi @qombellah :wave:

We have finally published the PWA plugin documentation: PWA | WeWeb Documentation

2 Likes

Hey
If we want to send a notification via API how i this possible ?

Also do you guys support the one signal SDK or Plugin?

Hi @yasinhassanien
The plugin only supports local notifications, not push ones.

Thanks @danlopes does weweb support to integrate one signal kit ?

We have no plans of building an integration for it but it should be doable.