novu icon indicating copy to clipboard operation
novu copied to clipboard

🚀 Feature: Add Content-Available Option for Push Notification Workflow Step

Open gigo1980 opened this issue 6 months ago • 2 comments

🔖 Feature description

Add an option to set content-available flag for push notifications in the workflow step, specifically for iOS devices. This feature would allow specifying that the notification should cause the iOS app to start in the background to run a background task.

🎤 Why is this feature needed ?

This feature is crucial for iOS apps that need to perform background tasks upon receiving a push notification. It allows for more efficient handling of notifications and enables developers to implement features like:

  • Pre-fetching content before the user opens the app
  • Updating app content in the background
  • Performing time-sensitive tasks without user interaction

By implementing this feature, Novu would provide more flexibility and power to developers using the platform for push notifications, especially those targeting iOS devices.

✌️ How do you aim to achieve this?

Add a new boolean option in the push notification workflow step configuration, such as contentAvailable. When set to true, include the content-available flag in the Apple Push Notification Service (APNs) or Expo Push Notification Service payload.

🔄️ Additional Information

This feature is specifically related to Apple Push Notification service (APNs) and is similar to the Expo property _contentAvailable. It's important to note that this feature only applies to iOS devices and will have no effect on Android or web push notifications.

👀 Have you spent some time to check if this feature request has been raised before?

  • [X] I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

Are you willing to submit PR?

None

gigo1980 avatar Aug 08 '24 11:08 gigo1980