Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I have installed react-native-firebase #1096

Closed
fouad1994 opened this issue Jun 19, 2019 · 4 comments
Closed

I have installed react-native-firebase #1096

fouad1994 opened this issue Jun 19, 2019 · 4 comments
Labels

Comments

@fouad1994
Copy link

Should I remove react-native-firebase when I install this library?
if not so this library I can't setup here is my some files

dependencies { implementation project(':react-native-reanimated') implementation project(':react-native-gesture-handler') compile project(':react-native-firebase') compile project(':react-native-vector-icons') compile project(':react-native-localization') compile project(':react-native-fast-image') compile project(':react-native-restart') compile project(':react-native-color-matrix-image-filters') implementation project(':react-native-svg') implementation project(':react-native-linear-gradient') compile(project(':react-native-push-notification')) { exclude group: "com.google.android.gms" } implementation "com.google.android.gms:play-services-gcm:16.1.0" implementation fileTree(dir: "libs", include: ["*.jar"]) implementation "com.android.support:appcompat-v7:${rootProject.ext.supportLibVersion}" implementation "com.facebook.react:react-native:+" // From node_modules implementation "com.google.android.gms:play-services-base:16.0.1" // implementation "com.google.firebase:firebase-core:16.0.6" implementation "com.google.firebase:firebase-auth:16.1.0" implementation "com.google.firebase:firebase-messaging:17.3.4" implementation 'com.google.firebase:firebase-inappmessaging-display:17.0.0' implementation project(':react-native-community-netinfo') compile('com.crashlytics.sdk.android:crashlytics:2.10.1@aar') { transitive = true; } compile (project(':react-native-camera')) { exclude group: "com.google.android.gms" } implementation ("com.google.android.gms:play-services-vision:16.2.0") { force = true } repositories { maven { url 'https://maven.fabric.io/public' } } }

`

    <meta-data  android:name="com.dieam.reactnativepushnotification.notification_channel_name"
        android:value="YOUR NOTIFICATION CHANNEL NAME"/>
    <meta-data  android:name="com.dieam.reactnativepushnotification.notification_channel_description"
        android:value="YOUR NOTIFICATION CHANNEL DESCRIPTION"/>
    <!-- Change the resource name to your App's accent color - or any other color you want -->
    <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"/>

    <!-- < Only if you're using GCM or localNotificationSchedule() > -->
    <service
        android:name="com.dieam.reactnativepushnotification.modules.RNPushNotificationListenerServiceGcm"
        android:exported="false" >
        <intent-filter>
            <action android:name="com.google.android.c2dm.intent.RECEIVE" />
        </intent-filter>
    </service>
    <!-- </ Only if you're using GCM or localNotificationSchedule() > -->

    <!-- < Else > -->
    <service
        android:name="com.dieam.reactnativepushnotification.modules.RNPushNotificationListenerService"
        android:exported="false" >
        <intent-filter>
            <action android:name="com.google.firebase.MESSAGING_EVENT" />
        </intent-filter>
    </service>
    <!-- </Else> -->


    <service android:name="io.invertase.firebase.messaging.RNFirebaseMessagingService">
        <intent-filter>
            <action android:name="com.google.firebase.MESSAGING_EVENT" />
        </intent-filter>
    </service>
    <service android:name="io.invertase.firebase.messaging.RNFirebaseInstanceIdService">
        <intent-filter>
            <action android:name="com.google.firebase.INSTANCE_ID_EVENT" />
        </intent-filter>
    </service>
    <service android:name="io.invertase.firebase.messaging.RNFirebaseBackgroundMessagingService" />

`

import com.dieam.reactnativepushnotification.ReactNativePushNotificationPackage; new ReactNativePushNotificationPackage(),

include ':react-native-push-notification'
project(':react-native-push-notification').projectDir = file('../node_modules/react-native-push-notification/android')

@slavikdenis
Copy link

slavikdenis commented Jun 19, 2019

Im using them together for a few months and have absolutely no problem.

@bgerhards
Copy link

#1092 pr out to fix it.

@yash-atreya
Copy link

@slavikdenis

Im using them together for a few months and have absolutely no problem.

how to check google play services version and firebase version?
It's one of the steps in the installing rn-push-notifications

@github-actions
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 30 days if no further activity occurs. Thank you for your contributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants