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

Iterable push notification can't work #142

Open
chuuuan opened this issue Jun 9, 2021 · 10 comments
Open

Iterable push notification can't work #142

chuuuan opened this issue Jun 9, 2021 · 10 comments
Assignees
Labels
documentation Improvements or additions to documentation firebase push notification

Comments

@chuuuan
Copy link

chuuuan commented Jun 9, 2021

I'm following the setup with the "Installing Iterable's React Native SDK" step and I'm testing with android devices.
But I can't receive any push notification through the Iterable campaign and test push.
Also, by using the "getLastPushPayload" function there's no returning JSON back.

Testing push notifications with @react-native-firebase/messaging works fine.
I'm wondering the push notification is broken on Iterable react-native SDK, does anyone also facing this problem?

@tonuegbu
Copy link

having the same problem.

@chuuuan
Copy link
Author

chuuuan commented Jun 15, 2021

having the same problem.

Hello, @tonuegbu !
Thanks for your comment.

I have some test below for Iterable react-native SDK:

  1. The old one I created with the same react-native versions (0.62.2): none of the push work
  2. Create a new project with RN version 0.62.2: front and back push works
  3. Create a new project with the latest version of RN: the setEmail function doesn't work; no device token has been created. But the event track can work?!
  4. Create a project with RN version 0.64.1: front push doesn't work but backend works...

All the setting is the same for these four RN project.

I think maybe you can try to build a new project to have a test.

@cparki3
Copy link

cparki3 commented Jun 18, 2021

We had similar issues recently with Android because of the SDK using FirebaseInstanceId which is now deprecated (https://firebase.google.com/docs/reference/android/com/google/firebase/iid/FirebaseInstanceId).

We had to add firebase-iid as a dependency to get Android working again. Thread with the solution we used can be found here: mixpanel/mixpanel-android#744

Hope it helps!

@1280103995
Copy link

You may need to remove all @react-native-firebase/messaging content to make it work.

@ilya-lopukhin
Copy link

I'm also facing this problem, seems like @react-native-firebase/messaging package is not viable for Iterable? This is a big concern since most react native apps use this package on both platforms

@ShepSims
Copy link

@cparki3 solution might help, however, my team has some conflicts with using that pacakge, and it sent us down a rabbit hole of problems that caused more pain than the solution would have been worth.

Would love to hear from the @Iterable team to see some kind of support for use with Firebase messaging, as it is a very widely used package

@hromovp
Copy link

hromovp commented Jun 26, 2023

If someone have this issue. My issue was that I managed to make it work but only when app is in background / closed, and it only showed text.

In order to make it work with rich notifications and in foreground add service to AndroidManifest, like this:

<application>
...
    <service
      android:name="com.iterable.iterableapi.IterableFirebaseMessagingService"
      android:exported="false">
      <intent-filter>
        <action android:name="com.google.firebase.MESSAGING_EVENT" />
      </intent-filter>
    </service>
</application>

Have a good day!

@dylankeenRelay
Copy link

Has there been any progress for this issue?

@meicoder
Copy link

Same problem here with iOS. No token registered after call Iterable.setEmail()

@galengeocaching
Copy link

galengeocaching commented Jan 29, 2025

OK, been a bit through the wringer installing Push Notes on React-Native but found some install workarounds:

Android also with react-native-firebase: both Iterable and React-Native-Firebase install Services files in the merged AndroidManifest.xml, but only one gets honored. You need to combine the two Services into one custom service. Not sure of the exact 'reflection' mechanism but this seemed to work: https://medium.com/@chornenkyy.v/do-you-want-to-use-two-or-more-firebasemessagingservices-at-once-67236d1bd9e0
Note you'll need to add the imports to your service file yourself.
This is the equivalent of this step in the help articles.

Iterable iOS also uses APNS so is independent enough of react-native-firebase that they play nice. However, the install steps are a little misleading as you'll need a fair amount of changes to your AppDelegate file as laid out in steps 7 and 8 of the Native iOS Install steps (enable push notifications and enable in-app messages).

@lposen lposen self-assigned this Feb 28, 2025
@lposen lposen pinned this issue Feb 28, 2025
@lposen lposen added documentation Improvements or additions to documentation firebase labels Feb 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation firebase push notification
Projects
None yet
Development

No branches or pull requests