![]() In the notifications options, you must provide a channel id with channelId: "your-channel-id", if the channel doesn't exist the notification might not be triggered. NOTE: Without channel, notifications don't work configure ( '` ) // (optional) callback returns whether the channel was created, false means it already existed. Import PushNotificationIOS from import PushNotification from "react-native-push-notification" // Must be outside of any component LifeCycle (such as `componentDidMount`). ![]() In android/app/src/main/res/values/colors.xml (Create the file if it doesn't exist). If not using a built in Android color ( for the notification_color meta-data item. NOTE: firebase-messaging, prior to version 15 requires to have the same version number in order to work correctly at build time and at run time. You should follow their installation instructions. The component uses PushNotificationIOS for the iOS part. Having a problem? Read the troubleshooting guide before raising an issue. NOTE: For Android, you will still have to manually update the AndroidManifest.xml (as below) in order to use Scheduled Notifications. NOTE: If you target iOS you also need to follow the installation instructions for PushNotificationIOS since this package depends on it. Yarn yarn add react-native-push-notification Maintainers are welcome ! Feel free to contact me □ ChangelogĬhangelog is available from version 3.1.3 here: Changelog Installation NPM npm install -save react-native-push-notification ![]() ![]() React Native Local and Remote Notifications for iOS and Android □ Version 7.x is live ! □Ĭheck out for changes and migration in the CHANGELOG: ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |