wix / react-native-notifications

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

random 10s delay on android between tapping warm notification and Notification opened log #909

Closed nschild closed 1 year ago

nschild commented 2 years ago

Hi, I am migrating from react-native-push-notification as I thought this bug resided with them. Since it is happening with this library too, it must be in my code. Has anyone experienced this before?

Around 10% of the time, I am experiencing a 10s delay when opening a warm (fcm) notification. The app opens, but it takes 10s to get the "Notification opened" log. All the handlers from the docs are implemented in the index.js except for getInitialNotification and registerNotificationOpened, which are called in my 's constructor as I mentioned in one of the open issues. Cold opens are quick, just an issue with warm. I test on multiple devices simultaneously and it only happens to 1 at a time. not the same one.

"dependencies": {
    "@alessiocancian/react-native-actionsheet": "^3.1.2",
    "@formidable-webview/webshell": "^2.6.0",
    "@mapbox/tilebelt": "^1.0.2",
    "@mapbox/vector-tile": "^1.3.1",
    "@react-native-async-storage/async-storage": "^1.17.7",
    "@react-native-community/art": "1.2.0",
    "@react-native-community/geolocation": "^2.1.0",
    "@react-native-community/netinfo": "^9.3.0",
    "@react-native-community/slider": "^4.2.4",
    "@react-navigation/material-top-tabs": "^6.2.2",
    "@react-navigation/native": "^6.0.11",
    "@react-navigation/native-stack": "^6.7.0",
    "@react-navigation/stack": "^6.2.2",
    "@sayem314/react-native-keep-awake": "^1.1.0",
    "@taboola/react-native-taboola": "^2.3.1",
    "@types/react-native-snap-carousel": "^3.8.5",
    "appcenter": "^4.4.4",
    "appcenter-analytics": "^4.4.4",
    "appcenter-crashes": "^4.4.4",
    "babel-plugin-module-alias": "^1.6.0",
    "babel-plugin-module-resolver": "^4.1.0",
    "babel-runtime": "^6.26.0",
    "formik": "^2.2.9",
    "hermes-engine": "^0.9.0",
    "jetifier": "^1.6.6",
    "jsc-android": "^250230.2.1",
    "lodash": "^4.17.21",
    "metro-react-native-babel-preset": "^0.66.2",
    "moment": "^2.29.3",
    "moment-timezone": "^0.5.34",
    "patch-package": "^6.4.7",
    "pbf": "^3.2.1",
    "react": "17.0.2",
    "react-native": "^0.66.4",
    "react-native-androw": "0.0.34",
    "react-native-background-fetch": "^4.1.1",
    "react-native-circular-progress": "^1.3.7",
    "react-native-console-view": "^0.0.21",
    "react-native-create-thumbnail": "^1.5.1",
    "react-native-device-info": "^10.0.1",
    "react-native-exif": "^0.5.0",
    "react-native-fs": "^2.20.0",
    "react-native-gesture-handler": "^2.5.0",
    "react-native-google-places-autocomplete": "^2.4.1",
    "react-native-image-picker": "^4.8.4",
    "react-native-keyboard-accessory": "^0.1.16",
    "react-native-keyboard-aware-scroll-view": "^0.9.5",
    "react-native-maps": "^1.0.0",
    "react-native-maps-super-cluster": "^1.6.0",
    "react-native-notifications": "^4.3.2",
    "react-native-orientation-locker": "^1.5.0",
    "react-native-pager-view": "^5.4.25",
    "react-native-permissions": "^2.2.2",
    "react-native-picker-select": "^8.0.4",
    "react-native-progress-wheel": "^1.0.5",
    "react-native-rate": "^1.1.7",
    "react-native-reanimated": "^2.9.1",
    "react-native-reanimated-carousel": "^3.0.3",
    "react-native-receive-sharing-intent": "^1.1.0",
    "react-native-render-html": "^6.3.4",
    "react-native-safe-area-context": "^4.3.1",
    "react-native-screens": "^3.14.1",
    "react-native-share": "^7.6.4",
    "react-native-sms": "^1.11.0",
    "react-native-snap-carousel": "^4.0.0-beta.6",
    "react-native-splash-screen": "^3.3.0",
    "react-native-svg": "^12.4.0",
    "react-native-tab-view": "^3.1.1",
    "react-native-vector-icons": "^9.2.0",
    "react-native-video": "^5.2.0",
    "react-native-webview": "^11.23.0",
    "react-redux": "^8.0.2",
    "react-timer-mixin": "^0.13.4",
    "redux": "^4.2.0",
    "redux-actions": "^2.6.5",
    "redux-promise-middleware": "^6.1.2",
    "reselect": "^4.1.6",
    "stacktrace-parser": "^0.1.10",
    "tealium-react-native": "^2.2.0",
    "util": "^0.12.0",
    "yup": "^0.32.11"
  },
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 1 year ago

The issue has been closed for inactivity.