Quantcast
Channel: Active questions tagged react-native+android - Stack Overflow
Viewing all articles
Browse latest Browse all 30356

Fiirestore Connect does not work with android notifications

$
0
0

I am currently integrating notifications via FCM into my react native app. On ios everything works as intended. But if I open the android app by clicking on a notification (quit or background state) firestore connect is always empty. The android app and firestore connect work correctly when I open the app normally.

export default compose(  connect((state: ReduxState) => ({ userId: state.firebase.auth.uid })),  firestoreConnect((props: any) => {    return [      `users/${props.userId}`,    ];  }),  connect(    (state: ReduxState): Partial<Props> => {      // At this point state.firestore is empty      const user = getVal(        state.firestore,        `data/users/${state.firebase.auth.uid}`      );      return {        user,        loaded,        userId: state.firebase.auth.uid,      };    }  ))(PreloadGate);

Is there any known bug for firestore connect?


Viewing all articles
Browse latest Browse all 30356

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>