wix / react-native-notifications

React Native Notifications
MIT License
3.25k stars 764 forks source link

Question/Problem - Is possible to use react-native-notifications with aws amplify pinpoint? #900

Closed arthurhts closed 2 years ago

arthurhts commented 2 years ago

Problem We have the need to use amplify aws in react native but aws provides a library with many problems and we are trying to use some community library

iOS - Sending notification through aws pinpoint On iOS all listeners worked correctly. All listeners work

Android - Sending notification through aws pinpoint

Important: I tested it by sending directly from firebase to the android app and all events work correctly without any changes to the code

Versions "react-native": "0.63.4", "react-native-notifications": "^4.3.1",

It was necessary to make a patcher to work by changing the in ReactAppLifecycleFacade hasActiveReactInstance to hasActiveCatalystInstance

arthurhts commented 2 years ago

UPDATE

Android - Sending notification through aws pinpoint

registerNotificationReceivedForeground event corret registerNotificationOpened event corret getInitialNotification event corret

registerNotificationReceivedBackground Notification is displayed but not triggered listener Important -> The firebase messaging handle works in background messaging().setBackgroundMessageHandler

iOS - Sending notification through aws pinpoint On iOS all listeners worked correctly. All listeners work

registerNotificationReceivedForeground event correct registerNotificationReceivedBackground event correct registerNotificationOpened event correct getInitialNotification event correct

Versions "react-native": "0.63.4", "react-native-notifications": "^4.3.1",

It was necessary to make a patcher to work by changing the in ReactAppLifecycleFacade hasActiveReactInstance to hasActiveCatalystInstance

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

stale[bot] commented 2 years ago

The issue has been closed for inactivity.