[config][android] Handle success value to match ios
This commit is contained in:
parent
54743d945d
commit
fc39b35e1a
|
@ -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());
|
||||||
|
|
Loading…
Reference in New Issue