Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Android] Must initialize Fabric before using singleton() #22

Open
lsps9150414 opened this issue Jun 21, 2016 · 4 comments
Open

[Android] Must initialize Fabric before using singleton() #22

lsps9150414 opened this issue Jun 21, 2016 · 4 comments

Comments

@lsps9150414
Copy link

Getting this error when calling DigitsLoginButtonRef.getSessionDetails( callback )

screenshot_20160621-184057

@lsps9150414
Copy link
Author

Any idea what may cause this problem?

@jpdriver
Copy link
Collaborator

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?

@lsps9150414
Copy link
Author

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

@jpdriver
Copy link
Collaborator

@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 ?

muneebs added a commit to muneebs/react-native-fabric-digits that referenced this issue Dec 23, 2016
"Must initialize Fabric before using singleton" - relates to the following issue: JeanLebrument#22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants