Use RN notifications without Google services

This commit is contained in:
Julia Friesel
2019-04-10 19:54:04 +02:00
parent 9a9ca10283
commit a4545fedcf
3 changed files with 3 additions and 31 deletions
-27
View File
@@ -52,39 +52,12 @@
<meta-data android:name="com.dieam.reactnativepushnotification.notification_color"
android:resource="@android:color/white"/>
<!-- < Only if you're using GCM or localNotificationSchedule() > -->
<receiver
android:name="com.google.android.gms.gcm.GcmReceiver"
android:exported="true"
android:permission="com.google.android.c2dm.permission.SEND" >
<intent-filter>
<action android:name="com.google.android.c2dm.intent.RECEIVE" />
<category android:name="${applicationId}" />
</intent-filter>
</receiver>
<!-- < Only if you're using GCM or localNotificationSchedule() > -->
<receiver android:name="com.dieam.reactnativepushnotification.modules.RNPushNotificationPublisher" />
<receiver android:name="com.dieam.reactnativepushnotification.modules.RNPushNotificationBootEventReceiver">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
</intent-filter>
</receiver>
<service android:name="com.dieam.reactnativepushnotification.modules.RNPushNotificationRegistrationService"/>
<service
android:name="com.dieam.reactnativepushnotification.modules.RNPushNotificationListenerService"
android:exported="false" >
<intent-filter>
<!-- < Only if you're using GCM or localNotificationSchedule() > -->
<action android:name="com.google.android.c2dm.intent.RECEIVE" />
<!-- < Only if you're using GCM or localNotificationSchedule() > -->
<!-- <Else> -->
<action android:name="com.google.firebase.MESSAGING_EVENT" />
<!-- </Else> -->
</intent-filter>
</service>
</application>
</manifest>
+2 -3
View File
@@ -7526,9 +7526,8 @@
}
},
"react-native-push-notification": {
"version": "3.1.1",
"resolved": "https://registry.npmjs.org/react-native-push-notification/-/react-native-push-notification-3.1.1.tgz",
"integrity": "sha512-4+4yQXNPqh5IVvpSBmR4Cy/UeMjTcfE8KIJgEuT7pME97WK+aGPn6W3ybhOoXC1n+ZWKfrAlsHydLE4xfBZDJg=="
"version": "github:jfr3000/react-native-push-notification#f9e83510d687116ea79ee30fde6b93ba5a07b019",
"from": "github:jfr3000/react-native-push-notification"
},
"react-native-restart": {
"version": "0.0.7",
+1 -1
View File
@@ -36,7 +36,7 @@
"react-native-fs": "^2.13.3",
"react-native-hyperlink": "0.0.14",
"react-native-modal-datetime-picker-nevo": "^4.11.0",
"react-native-push-notification": "^3.1.1",
"react-native-push-notification": "github:jfr3000/react-native-push-notification",
"react-native-restart": "0.0.7",
"react-native-share": "^1.1.3",
"react-native-vector-icons": "^5.0.0",