Skip to content

[WARNING: NOT MAINTAINED] Android system notifications for React Native. Supports push notifications with GCM integrated. Another push-notification solution on Android is https://github.com/zo0r/react-native-push-notification, it features on providing the same API on iOS and Android, while this one supports more notification features on Android.

Notifications You must be signed in to change notification settings

IntelexTechnologies/react-native-system-notification

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-native-progress-notification

Getting started

$ npm install react-native-progress-notification --save

Manual installation

Android

  1. Open up android/app/src/main/java/[...]/MainApplication.java
  • Add import com.intelex.reactnative.notification.NotificationPackage; to the imports at the top of the file
  • Add new NotificationPackage() to the list returned by the getPackages() method
  1. Append the following lines to android/settings.gradle:
    include ':react-native-progress-notification'
    project(':react-native-progress-notification').projectDir = new File(rootProject.projectDir, 	'../node_modules/react-native-progress-notification/android')
    
  2. Insert the following lines inside the dependencies block in android/app/build.gradle:
      compile project(':react-native-progress-notification')
    

Usage

import NotificationAndroid from 'react-native-progress-notification';

NotificationAndroid.create({
  id: 1,
  subject: 'Your title',
  message: 'Your message',
  smallIcon: 'ic_launcher',
  progress: 0.2,
  onlyAlertOnce: true,
});

About

[WARNING: NOT MAINTAINED] Android system notifications for React Native. Supports push notifications with GCM integrated. Another push-notification solution on Android is https://github.com/zo0r/react-native-push-notification, it features on providing the same API on iOS and Android, while this one supports more notification features on Android.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 94.1%
  • JavaScript 5.9%