api - Firebase Java client authentication -
Trying to create a standalone Java application, but can not be authenticated.
import com.firebase .client *. Public Sector Main {Public Stable Zero Main (String [] Args) {Firebase Ref = New Firebase ("https://myURL.firebaseio.com/"); Ref.authAnonymously (New Firebase.AuthResultHandler {@Override public void onAuthenticationError (FirebaseError arg0) {System.out.println ("Not authenticated:" + arg0);} @Authorized (AuthData arg0) {@} Override public zero {System.out.println ("authenticated.");}}); }}
The following authentication error always occurs:
Not authenticated: Firebus error: There was an exception when connecting to the authentication server: Connection refused: Unknown authentication authentication is running on the host site Anonymous Authentication Works from the Web App Using Firebase-Client-jvm-2.0.0.jar Any suggestions?
Comments
Post a Comment