Comments (3)
Hi @LcsGrz, thanks for reaching out. Can you test extending your Firebase service to the Iterable service so it can forward onMessageReceived
and onNewToken
calls to IterableFirebaseMessagingService.handleMessageReceived and IterableFirebaseMessagingService.handleTokenRefresh, respectively?
Reference: https://support.iterable.com/hc/en-us/articles/360035019712-Iterable-s-Android-SDK#handling-firebase-push-messages-and-tokens
from react-native-sdk.
Hi @LcsGrz, thanks for reaching out. Can you test extending your Firebase service to the Iterable service so it can forward
onMessageReceived
andonNewToken
calls to IterableFirebaseMessagingService.handleMessageReceived and IterableFirebaseMessagingService.handleTokenRefresh, respectively? Reference: https://support.iterable.com/hc/en-us/articles/360035019712-Iterable-s-Android-SDK#handling-firebase-push-messages-and-tokens
Hii, thank you very much for your answer, I was on vacation so I just saw your message :), tomorrow morning I will try what you tell me and I will edit this message
hugs!
from react-native-sdk.
@jena-chakour
Hi :D , I hope you are doing well, I was testing but I am not so sure how I can debug this in android, what I did was to create the java file in the android folder and in the manifest I added the following line
<service android:name=".MyFirebaseMessagingService" />
package com.p;
import android.util.Log;
import com.google.firebase.messaging.FirebaseMessagingService;
import com.google.firebase.messaging.RemoteMessage;
import com.iterable.iterableapi.IterableFirebaseMessagingService;
import java.lang.reflect.Field;
import java.lang.reflect.Modifier;
public class MyFirebaseMessagingService extends FirebaseMessagingService {
@Override
public void onMessageReceived(RemoteMessage remoteMessage) {
Log.d("app", "onMessageReceived");
IterableFirebaseMessagingService.handleMessageReceived(this, remoteMessage);
}
@Override
public void onNewToken(String s) {
Log.d( "app","onNewToken");
IterableFirebaseMessagingService.handleTokenRefresh();
}
}
and then run npx react-native log-android
but nothing happens :(
from react-native-sdk.
Related Issues (20)
- App Crashing While Opening From Playstore HOT 1
- When auto push registration fails, it seems to fail silently
- Android: App Crash on Launch after upgrading to 1.3.9 HOT 5
- Iterable with Expo HOT 1
- IOS push notification url handler doesn't work when app is opened both the foreground and background HOT 4
- [iOS][In-App messages] - Invalid API Key HOT 1
- Number of unread and read in app messages
- getLastPushPayload returns `null` for Android
- v1.3.13 Android Build fails HOT 2
- [Android] Crash on press push notification HOT 2
- Question: Do you support or plan to support the new React Native architecture?
- Why dependencies the react-native-vector-icons? HOT 1
- [Android] App is restarting when clicking on a push notifiction while it's already opened in background
- When starting the app, the urlHandler function takes a moment to be executed
- App Crashing When IterableApi retrieveEmailAndUserId called HOT 2
- Iterable.updateSubscriptions fails silently
- Re-enable push notifications HOT 1
- expiringAuthTokenRefreshPeriod and passing a token to Iterable.setEmail(email, token) don't work on iOS HOT 4
- API call flow when switching between anonymous and signed in users
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-sdk.