[config][android] Handle success value to match ios

This commit is contained in:
Elliot Hesp 2018-07-12 13:44:37 +01:00
parent 54743d945d
commit fc39b35e1a
1 changed files with 1 additions and 1 deletions

View File

@ -120,7 +120,7 @@ class RNFirebaseRemoteConfig extends ReactContextBaseJavaModule {
@Override
public void onComplete(@NonNull Task<Void> task) {
if (task.isSuccessful()) {
promise.resolve("remoteConfigFetchStatusSuccess");
promise.resolve("config/success");
} else {
if (task.getException() instanceof FirebaseRemoteConfigFetchThrottledException) {
promise.reject("config/throttled", "fetch() operation cannot be completed successfully, due to throttling.", task.getException());