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

How to configure the Android side? Help me, please #141

Closed
1280103995 opened this issue Jun 9, 2021 · 6 comments
Closed

How to configure the Android side? Help me, please #141

1280103995 opened this issue Jun 9, 2021 · 6 comments

Comments

@1280103995
Copy link

1280103995 commented Jun 9, 2021

Now it works well on iOS, but it doesn't work at all on Android.

I have completed it according to the configuration document on the Android side:

  1. add classpath 'com.google.gms:google-services:4.3.3'
  2. add apply plugin: 'com.google.gms.google-services'
  3. add implementation "com.google.firebase:firebase-messaging:20.2.3"
  4. add google-services.json file in app module.
  5. Created an Android application on Iterable and configured Firebase Server Key.
  6. Call setEmail method and found the token in Audience > Contact Lookup devices array.

When I use Test Push to send notifications on Iterable, I can't receive them.

Am I missing any configuration? who can help me? Thank you everyone!

@chuuuan
Copy link

chuuuan commented Jun 9, 2021

Hey, I also encounter the same problem with you.
I think your setup for android is correct.
Windering there push function is broken.

This is my issue link:
#142 (comment)

@1280103995
Copy link
Author

This library conflicts with react-native-push-notification, remove these codes inAndroidManifest.xml

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

@chuuuan
Copy link

chuuuan commented Jun 9, 2021

This library conflicts with react-native-push-notification, remove these codes inAndroidManifest.xml

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

Hi,
Is the Iterable react-native SDK's push notification work on your side?
cause I still can't get this work, would you mind giving me some examples about the push notification?

Also, I've checked that I don't have the code you mention in my AndroidManifest.xml.

@1280103995
Copy link
Author

1280103995 commented Jun 9, 2021

Yes. Maybe you should copy some of the Iterable SDK configuration to the newly created project and try it.

@trungls1706
Copy link

i have �same problem
cannot push noti test in android

@StephenAchieve
Copy link

Same here now

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

No branches or pull requests

4 participants