react-native-firebase icon indicating copy to clipboard operation
react-native-firebase copied to clipboard

Missing call removeDeliveredNotificationsByTag() function in index.js.flow, index.js and index.d.ts files.

Open hanzoow opened this issue 6 years ago • 3 comments

Issue

Describe your issue here

Seems like you forgot to call removeDeliveredNotificationsByTag() function in 3 files index.js.flow, index.js and index.d.ts so in my code i can't call that function to remove notifications by tags. Please check image to more info. This image is about call remove notification functions in my code.

image

This image is about your missing functions in mode_modules

image image image image

PLEASE HELP THE DEADLINE IS THERE ! PLZ HELP

Project Files

iOS

Click To Expand

ios/Podfile:

  • [ ] I'm not using Pods
  • [x] I'm using Pods and my Podfile looks like:
# N/A

AppDelegate.m:

// N/A


Android

Click To Expand

Have you converted to AndroidX?

  • [ ] my application is an AndroidX application?
  • [ ] I am using android/gradle.settings jetifier=true for Android compatibility?
  • [ ] I am using the NPM package jetifier for react-native compatibility?

android/build.gradle:

// N/A

android/app/build.gradle:

// N/A

android/settings.gradle:

// N/A

MainApplication.java:

// N/A

AndroidManifest.xml:

<!-- N/A -->


Environment

Click To Expand

react-native info output:

 OUTPUT GOES HERE
  • Platform that you're experiencing the issue on:
    • [ ] iOS
    • [ ] Android
    • [ ] iOS but have not tested behavior on Android
    • [ ] Android but have not tested behavior on iOS
    • [ ] Both
  • react-native-firebase version you're using that has this issue:
    • e.g. 5.6.0
  • Firebase module(s) you're using that has the issue:
    • e.g. Instance ID
  • Are you using TypeScript?
    • Y/N & VERSION
  • Are you using Expo?
    • Y & SDK VERSION


hanzoow avatar Jul 09 '20 08:07 hanzoow

Please don't post images. Post code in markdown format, which is triple-backticks and a language specifier like

  let code = 'well formatted stuff'; // much easier to read, works on mobile while images don't

If you discover errors in the code, a liberal use of "grep" will help you find the symbols, or just opening the root of the monorepo in visual studio code will let you find things

Post a PR with your idea on the problem and the correction and we can review

mikehardy avatar Jul 09 '20 14:07 mikehardy

close this. like @mikehardy recommend, use https://github.com/ds300/patch-package to make change from node_modules. It works to me ! Thank you so much @mikehardy

hanzoow avatar Jul 09 '20 15:07 hanzoow

Glad that worked, and yes - in my opinion patch-package is just fantastic and is so useful when working in react-native. I always have a couple patches in my source tree (I usually make PRs upstream so what I have patched locally is always changing, but there's always something). With patch-package you're never really stuck, but you don't have to maintain tracking forks for small things

mikehardy avatar Jul 09 '20 16:07 mikehardy