@connected-home/react-native-push-notification-hive

3.10.0 • Public • Published

React Native Push Notifications

Hive-specific changes

Since this lib is not yet published, in order to use it we'll need to tell hive-soaring-sparrow to replace the original lib with this fork. Assumptions:

  • You have hive-soaring-sparrow cloned in your current directory, with yarn install etc. done already done (RN project ready to work)
  • You already cloned this repo right next to your hive-soaring-sparrow directory
  • You are currently in the hive-soaring-sparrow directory

Do the following to replace the original lib in the project:

rm -rf node_modules/@connected-home/react-native-push-notification-hive
yarn add ../react-native-push-notification-hive

You can use the above each time you want to rebuild the native library to see changes in the project. TODO: Find out a way for the project to fetch the library from the Git repo.

When starting the bundler, it might be necessary to clear its cache too:

rm -rf /tmp/metro-bundler-cache-* && npm start --reset-cache

Breaking changes

3.1.0

remoteNotificationsRegistered event is now sent with two parameters (deviceToken and tokenType) instead of one for Android. Clients must use the tokenType to determine which service the token should be sent to.

===

See the docs for original library at: https://github.com/zo0r/react-native-push-notification

Package Sidebar

Install

npm i @connected-home/react-native-push-notification-hive

Weekly Downloads

21

Version

3.10.0

License

MIT

Unpacked Size

243 kB

Total Files

58

Last publish

Collaborators

  • bvic23
  • domthom
  • sandfox