Sticky/Persistent and Dismissible Local Notifications in Expo [SDK 44]

  1. SDK Version: 44
  2. Platforms: iOS / Android

Hi, I’m implementing a check in functionality in my app that should fire a local notification whenever the user starts a check in task. In the check in process, we have a flag that says if said user has “automatic checkout” enabled or not. If he doesn’t have this flag enabled, the local notification should be sticky/permanent unless he open the app again (through the notification or not) and proceed to make the checkout. If he does have the flag enabled, the notification should be dismissible by the user or after some predetermined time. I know expo notifications has a function that handles scheduledNotifications but what about dismiss notifications after some time? And how can I make the notifications be sticky in iOS and Android?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.