I would like to use Firebase Remote Config in a background service (that I used to display notifications). Is it possible to do this ?
To be more accurate, is it possible to fetch the remote values in a background service ?
// Code below in a background service ?
mFirebaseRemoteConfig.fetch(cacheExpiration).addOnCompleteListener(this, new OnCompleteListener<Void>() {
@Override
public void onComplete(@NonNull Task<Void> task) {
// get remote values here
}
}
Thanks !!!