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