react-native-firestack icon indicating copy to clipboard operation
react-native-firestack copied to clipboard

Crashing on Android when using firestack.analytics

Open ajonno opened this issue 7 years ago • 5 comments

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

ajonno avatar Mar 20 '17 23:03 ajonno

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

Have you resolved this @ajonno?

joegoodall1 avatar Mar 31 '17 17:03 joegoodall1

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 <[email protected]mailto:[email protected]> 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 <[email protected]mailto:[email protected]> Cc: Angus Johnston <[email protected]mailto:[email protected]>, Mention <[email protected]mailto:[email protected]>

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.

ajonno avatar Mar 31 '17 22:03 ajonno

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

Salakar avatar Apr 07 '17 17:04 Salakar

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?

joegoodall1 avatar Apr 11 '17 20:04 joegoodall1

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.

ghuh avatar Sep 17 '17 23:09 ghuh