fullstackreact / react-native-firestack

A firestack v3 react-native implementation
MIT License
715 stars 132 forks source link

Crashing on Android when using firestack.analytics #316

Open ajonno opened 7 years ago

ajonno commented 7 years ago

iOS is fine. Android crashes immediately anytime this call is made:

firestack.analytics.logEventWithName("home_view")
      .catch(err => console.log('You should never end up here'));

am using:

"name": "react-native-firestack",
"version": "2.3.9",

react-native version:

"react-native": "0.41.1",

we're getting our app out to beta testers in 5 days(!) so appreciate any help to get this resolved.

crash log is: image

joegoodall1 commented 7 years ago

We're getting the same error ^^^^^

Have you resolved this @ajonno?

ajonno commented 7 years ago

No, we've moved away from firestack and are using Google's Firebase JS API.

Get Outlook for iOShttps://aka.ms/o0ukef


From: Joe Goodall notifications@github.com<mailto:notifications@github.com> Sent: Saturday, April 1, 2017 4:50 am Subject: Re: [fullstackreact/react-native-firestack] Crashing on Android when using firestack.analytics (#316) To: fullstackreact/react-native-firestack react-native-firestack@noreply.github.com<mailto:react-native-firestack@noreply.github.com> Cc: Angus Johnston ajonno68@gmail.com<mailto:ajonno68@gmail.com>, Mention mention@noreply.github.com<mailto:mention@noreply.github.com>

We're getting the same error ^^^^^

Have you resolved this @ajonnohttps://github.com/ajonno?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/fullstackreact/react-native-firestack/issues/316#issuecomment-290781891, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AC3bVQT0vwANYAD0smq7aq0Ht9x5hB4_ks5rrTzzgaJpZM4MjIs5.

Salakar commented 7 years ago

@joegoodall1 @ajonno don't think this was even fully implemented on here, but there are much better alternatives you can use.

joegoodall1 commented 7 years ago

Thanks for replying @Salakar,

We've been looking at react-native-firebase as it looks a really good alternative but we've already done quite a lot of work to get Firestack working. How difficult/easy would it be to transition to react-native-firebase?

ghuh commented 7 years ago

I agree with @Salakar that the best solution is probably to switch to something supported like https://github.com/invertase/react-native-firebase. However, if you need a quick solution, just make sure to always send params with your analytics event and that should prevent this issue.