Closed Prafulkumar0512 closed 7 months ago
@Prafulkumar0512 Have you tried skipping the action buttons and when the user clicks on the notification (which should open the app) use getInitialNotification like below
notifee.getInitialNotification().then((initialNotification) => {
if (initialNotification) {
const { notification, pressAction } = initialNotification
if (notification) {
switch (notification.ios?.categoryId) {
case 'chat':
tabIndex = TABS.CHAT
break
/// ...
}
} else {
// if we are here, a notification did not cause the application to open
}
}
})
Hello 👋, to help manage issues we automatically close stale issues.
This issue has been automatically marked as stale because it has not had activity for quite some time.Has this issue been fixed, or does it still require attention?
This issue will be closed in 15 days if no further activity occurs.
Thank you for your contributions.
In our React Native, we're trying to implement Notifee for creating notification categories, and we pass the category id to FCM to enable action buttons in FCM notifications.
However, we're encountering an issue specific to iOS where tapping on the action buttons in the notifications doesn't launch the app. Instead, the specified function associated with the action button is executed in the background (e.g., redirecting the user to a specific screen).
FYI, We're using Notifee version 7.7.1 and React Native version 0.71. Are there any fixes or workarounds that can be implemented to address this issue?
Code Snapshot for category creation