skip to Main Content

Unnable to delete data in realtime firebase

I'd like to delete all of the data inside of specific node, without knowledge of specific id's. I've written some function within button click: val dbref = FirebaseDatabase.getInstance().reference.child("Message") dbref.addValueEventListener(object : ValueEventListener { override fun onDataChange(snapshot: DataSnapshot) { for (data in…

VIEW QUESTION

Flutter – RemoteConfig not working as expected to retrieve keys

I am a noob with Flutter/Dart/Firebase so I might be doing something obviously wrong: class RemoteConfigService { static final RemoteConfigService _singleton = RemoteConfigService._internal(); factory RemoteConfigService() { return _singleton; } RemoteConfigService._internal(); final FirebaseRemoteConfig remoteConfig = FirebaseRemoteConfig.instance; Future<void> initialize() async { await…

VIEW QUESTION

I want to retrieve data from a Firestore collection group using Flutter, but I'm encountering an error and unable to retrieve it

In the Flutter app, I'm trying to retrieve data stored in a Firestore subcollection using this method. Stream<List<DocumentSnapshot<Object?>>> fetchNearbyData({ required LatLng location, }) { final collectionReference = FirebaseFirestore.instance .collectionGroup(`postData`); return GeoFlutterFire() .collection(collectionRef: collectionReference) .within( center: GeoFlutterFire().point( latitude: location.latitude, longitude: location.longitude,…

VIEW QUESTION
Back To Top
Search