Skip to content
This repository has been archived by the owner on Sep 4, 2023. It is now read-only.

Config enable or disable geolocation on a user. #426

Merged
merged 1 commit into from
Nov 10, 2020

Conversation

anandarh
Copy link
Member

@anandarh anandarh commented Nov 9, 2020

Mengaktifkan atau menonaktifkan fitur geolocation pada spesifik user berdasarkan konfigurasi dari firestore.

Related task: [S14 App] Mekanisme disable log GPS per user

@anandarh
Copy link
Member Author

anandarh commented Nov 9, 2020

Masuk gans @aldiiii @gaganugraha33 @jaluowen

@anandarh anandarh self-assigned this Nov 9, 2020
Comment on lines +248 to +258
/*final RemoteConfig remoteConfig = await RemoteConfig.instance;
remoteConfig.setDefaults(<String, dynamic>{
FirebaseConfig.geolocationEnabled: true,
});

try {
await remoteConfig.fetch(expiration: Duration(minutes: 5));
await remoteConfig.activateFetched();
} catch (exception) {}

bool geolocationEnabled = remoteConfig.getBool(FirebaseConfig.geolocationEnabled) ?? true;*/
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Btw, untuk yg dibuat komentar ini, sebenarnya untuk versi global usernya, jadi langsung dari remote config. Tapi masih terjadi error Future already completed RemoteConfig.instance
Sepertinya belum di fix sama tim flutterfire-nya.

Related Issues

Bad state: Future already completed #195
[firebase_remote_config] Remote config/double instance error #2061

cc: @gaganugraha33 @jaluowen @aldiiii

@gaganugraha33 gaganugraha33 merged commit df81c46 into develop Nov 10, 2020
@anandarh anandarh deleted the improve-geolocation branch November 10, 2020 18:00
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants