react-native-fabric-digits icon indicating copy to clipboard operation
react-native-fabric-digits copied to clipboard

[Android] Must initialize Fabric before using singleton()

Open lsps9150414 opened this issue 8 years ago • 4 comments

Getting this error when calling DigitsLoginButtonRef.getSessionDetails( callback )

screenshot_20160621-184057

lsps9150414 avatar Jun 21 '16 10:06 lsps9150414

Any idea what may cause this problem?

lsps9150414 avatar Jun 23 '16 01:06 lsps9150414

hey @lsps9150414 -- which version of DigitsKit are you using? it looks like there might have been some recent changes to the initialisation...

have you got something like [Fabric with:@[[Digits sharedInstance]]]; in your AppDelegate.m?

jpdriver avatar Jun 24 '16 10:06 jpdriver

Hey @jpdriver, I'm getting this only in Android. I thing AppDelegate.m is not relevant?

lsps9150414 avatar Jun 28 '16 03:06 lsps9150414

@lsps9150414 ah yeah of course it's not. sorry my bad!

what I meant was have you got

TwitterAuthConfig authConfig = new TwitterAuthConfig(TWITTER_KEY, TWITTER_SECRET);
Fabric.with(this, new TwitterCore(authConfig), new Digits());

in your MainActivity.java ?

jpdriver avatar Jul 16 '16 18:07 jpdriver