Java Code Examples for com.firebase.ui.auth.ErrorCodes#UNKNOWN_ERROR
The following examples show how to use
com.firebase.ui.auth.ErrorCodes#UNKNOWN_ERROR .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: SocialProviderResponseHandler.java From FirebaseUI-Android with Apache License 2.0 | 6 votes |
public void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) { if (requestCode == RequestCodes.ACCOUNT_LINK_FLOW) { IdpResponse response = IdpResponse.fromResultIntent(data); if (resultCode == Activity.RESULT_OK) { setResult(Resource.forSuccess(response)); } else { Exception e; if (response == null) { e = new FirebaseUiException( ErrorCodes.UNKNOWN_ERROR, "Link canceled by user."); } else { e = response.getError(); } setResult(Resource.<IdpResponse>forFailure(e)); } } }
Example 2
Source File: BaseAuthActivity.java From q-municate-android with Apache License 2.0 | 6 votes |
private void onReceiveFirebaseAuthResult(int resultCode, Intent data) { IdpResponse response = IdpResponse.fromResultIntent(data); // Successfully signed in if (resultCode == RESULT_OK) { firebaseAuthHelper.refreshInternalFirebaseToken(firebaseAuthCallback); } else { //Sign in failed if (response == null) { // User pressed back button Log.i(TAG, "BACK button pressed"); return; } if (response.getErrorCode() == ErrorCodes.NO_NETWORK || response.getErrorCode() == ErrorCodes.UNKNOWN_ERROR) { showSnackbar(R.string.dlg_internet_connection_error, Snackbar.LENGTH_INDEFINITE); } } }
Example 3
Source File: SmartLockHandler.java From FirebaseUI-Android with Apache License 2.0 | 5 votes |
/** * Forward the result of a resolution from the Activity to the ViewModel. */ public void onActivityResult(int requestCode, int resultCode) { if (requestCode == RequestCodes.CRED_SAVE) { if (resultCode == Activity.RESULT_OK) { setResult(Resource.forSuccess(mResponse)); } else { Log.e(TAG, "SAVE: Canceled by user."); FirebaseUiException exception = new FirebaseUiException( ErrorCodes.UNKNOWN_ERROR, "Save canceled by user."); setResult(Resource.<IdpResponse>forFailure(exception)); } } }
Example 4
Source File: PendingIntentRequiredException.java From FirebaseUI-Android with Apache License 2.0 | 4 votes |
public PendingIntentRequiredException(@NonNull PendingIntent pendingIntent, int requestCode) { super(ErrorCodes.UNKNOWN_ERROR); mPendingIntent = pendingIntent; mRequestCode = requestCode; }
Example 5
Source File: IntentRequiredException.java From FirebaseUI-Android with Apache License 2.0 | 4 votes |
public IntentRequiredException(@NonNull Intent intent, int requestCode) { super(ErrorCodes.UNKNOWN_ERROR); mIntent = intent; mRequestCode = requestCode; }
Example 6
Source File: UserCancellationException.java From FirebaseUI-Android with Apache License 2.0 | 4 votes |
public UserCancellationException() { super(ErrorCodes.UNKNOWN_ERROR); }