firebase-realtime-database

retrieve data of specific value in Firebase recycle view in android studio

江枫思渺然 提交于 2020-08-20 11:37:23
问题 i have an e-commerce android app and i have all orders(state = shipped & not shipenter image description hereped) which are received by admin in recycler view from Firebase realtime database. Now, i want to get shipped orders(state = shipped) in another activity and i dont know how to retrieve only those orders which have state = shipped. I have tried several things but cant get around this. So anyone could help please answer. My recyclerView code looks this this: shippedOrdersRef =

Failed to load firebase (redirected error)

▼魔方 西西 提交于 2020-08-20 05:46:06
问题 I'm trying to learn ajax and I don't know back end language yet so I'm using firebase from google and I am running my code through localhost:8000 using python 2.7. I'm trying to GET/POST to this server: https://ajax-practice-1f1b9.firebaseio.com/ If you can't access it, my JSON looks like this: [ { "id": 1, "name" : "Will", "drink": "American with creme" }, { "id": 2, "name": "Donat", "drink": "Vanilla Macchiato" } ] here's my HTML and javascript $(function() { $.ajax({ type: 'GET', url:

Proguard configuration for Firebase-UI library

倾然丶 夕夏残阳落幕 提交于 2020-08-17 06:57:27
问题 When creating a APK with proguard enabled, the following exception is thrown when using the FirebaseRecyclerAdapter from the Firebase-UI library ( com.firebaseui:firebase-ui:0.3.0 ): java.lang.RuntimeException: java.lang.NoSuchMethodException: <init> [class android.view.View] at com.firebase.ui.FirebaseRecyclerAdapter.onCreateViewHolder(FirebaseRecyclerAdapter.java:168) The debug version (without proguard) works fine. Who has a working proguard config for Firebase-UI? My current proguard

Proguard configuration for Firebase-UI library

戏子无情 提交于 2020-08-17 06:57:21
问题 When creating a APK with proguard enabled, the following exception is thrown when using the FirebaseRecyclerAdapter from the Firebase-UI library ( com.firebaseui:firebase-ui:0.3.0 ): java.lang.RuntimeException: java.lang.NoSuchMethodException: <init> [class android.view.View] at com.firebase.ui.FirebaseRecyclerAdapter.onCreateViewHolder(FirebaseRecyclerAdapter.java:168) The debug version (without proguard) works fine. Who has a working proguard config for Firebase-UI? My current proguard

Flutter: Items in StreamBuilder(Using firebase realtime database) are sorted randomly [duplicate]

我的未来我决定 提交于 2020-08-15 14:44:33
问题 This question already has an answer here : Flutter: Firebase Real-Time database orderByChild has no impact on query result (1 answer) Closed 4 months ago . I'm creating a simple application with Firebase Realtime database where a user inputs a text and it gets added to a list of chats. void main() => runApp(MyApp()); class MyApp extends StatelessWidget { // This widget is the root of your application. @override Widget build(BuildContext context) { return MaterialApp( title: 'Flutter Demo',

Flutter: Items in StreamBuilder(Using firebase realtime database) are sorted randomly [duplicate]

早过忘川 提交于 2020-08-15 14:42:22
问题 This question already has an answer here : Flutter: Firebase Real-Time database orderByChild has no impact on query result (1 answer) Closed 4 months ago . I'm creating a simple application with Firebase Realtime database where a user inputs a text and it gets added to a list of chats. void main() => runApp(MyApp()); class MyApp extends StatelessWidget { // This widget is the root of your application. @override Widget build(BuildContext context) { return MaterialApp( title: 'Flutter Demo',

Can't do heavy work on broadcast receiver which is inside the Service

岁酱吖の 提交于 2020-08-15 06:00:05
问题 I created a Broadcast Receiver Which is inside the Service Class (Because of the Android Broadcast receiver restrictions Broadcast receiver stops after while, So I created Background Service , with foreground Service Notification Restriction in Android Oreo=< ). This Broadcast Receiver Listens to Phone Call States Changes IDLE, OFFHOOK, RINGING . According to the Phone call states changes(If the call ends), I get the last call details in the Cursor and Send to that details into the Firebase

Can't do heavy work on broadcast receiver which is inside the Service

不想你离开。 提交于 2020-08-15 05:59:51
问题 I created a Broadcast Receiver Which is inside the Service Class (Because of the Android Broadcast receiver restrictions Broadcast receiver stops after while, So I created Background Service , with foreground Service Notification Restriction in Android Oreo=< ). This Broadcast Receiver Listens to Phone Call States Changes IDLE, OFFHOOK, RINGING . According to the Phone call states changes(If the call ends), I get the last call details in the Cursor and Send to that details into the Firebase

Dart: decode Json from a Firebase snapshot

空扰寡人 提交于 2020-08-11 04:27:18
问题 it's probably a trivial question, I try to decode a json from a Firebase snapshot, here is the structure of the json : firebaseKey1 : {img1:value1} firebaseKey2 : {img2:value2} firebaseKey3 : {img3:value3} Here is what I tried: DatabaseReference firebaseRef = FirebaseDatabase.instance.reference(); firebaseRef.child('...').once().then((DataSnapshot snapshot) { Map<dynamic,dynamic> map = snapshot.value; map.forEach((key, jsonString) { print('$key: $jsonString'); // jsonString = {img1:value1} /

How to clear data from ViewModel ?MVVM [closed]

Deadly 提交于 2020-08-10 23:01:24
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 8 days ago . Improve this question Is there any way to clear/delete all data stored using MVVM pattern? My app looks like Login Activity -> Main Activity -> fragments(each fragment: Firebase singleton +repository singleton+view model + view) All the data is stored as livedata and when I