Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Adding Fabric Crashlytics conflict with Twitter login #533
I recently add Fabric so I can track my crash in prod. The app has the Twitter firebase-ui-auth login, the error is the following:
For what I can see I have to start the Twitter kit first, considering Fabric is started in tthe LoginActivity I have try this:
But my attempt was in vain.
Some help please :(
[UPDATE: the issue has being solved, please read the thread and see the gist in a further comment]
Yes! I have being reading about it, I'm starting to imagine a future where we can login in to Firebase and get everything easily :) With the new integration to Android Studio, and off course Firebase-ui moving from beta to stable, that seems the proper way to provide us android developer with great tools :) I have try with several trackers Fabric is my favorite and was the first service to make me feel that there is someone actually trying to make Android Dev less painfull
5.- If new AuthUI.IdpConfig.Builder(AuthUI.TWITTER_PROVIDER).build()) is removed then the problem is solved, but no Twitter login :(
6.- Since I mentioned it above, Fabric can be started in the Application class, I create a class that extend Application, override the onCreate method, add Fabric there
In case there is anything else I can do, let me know :)
Can you try adding the following code in your Application class (similar to what you tried before):
TwitterAuthConfig authConfig = new TwitterAuthConfig( appContext.getString(R.string.twitter_consumer_key), appContext.getString(R.string.twitter_consumer_secret)); Fabric.with(appContext.getApplicationContext(), new Twitter(authConfig), new Crashlytics());
Hey! This is a very good step forward, there is a problem, but maybe is not related to this.
It does work, Twitter login is displayed and login is successful. The only difference I can see, with what I originally did is the arguments are in other order, can you please provide with an explanation to know what happened?
2.- After Twitter login was completed, I got an error, so I check if it was due something else. The same email was authentified with google previously. Delete the account and try again, then the login worked. This is the error:
Thanks for the help, Im gonna keep an eye on this to let you know anything else. Please don't forget to explain me why your solution is different from mine, thanks.