firebase-realtime-database

Should I hide firebase api keys into backend? Not due to data security but project cloning issue

牧云@^-^@ 提交于 2020-06-09 19:46:31
问题 Can someone help me with firebase security questions? Here's what I was try to figure out: I understand that to let a client side interacting with my firebase app, a config and firebase.initializeApp(config) will be exposed to public, and everyone using the client side can see it in browser developer console. I also know that this is fine because I can use security rules and auth to secure data. But, if someone copied all my client code (including configs) and build a lot of cloned sites,

Should I hide firebase api keys into backend? Not due to data security but project cloning issue

℡╲_俬逩灬. 提交于 2020-06-09 19:46:30
问题 Can someone help me with firebase security questions? Here's what I was try to figure out: I understand that to let a client side interacting with my firebase app, a config and firebase.initializeApp(config) will be exposed to public, and everyone using the client side can see it in browser developer console. I also know that this is fine because I can use security rules and auth to secure data. But, if someone copied all my client code (including configs) and build a lot of cloned sites,

Missing or insufficient permissions during post a document to Firestore using Custom Token

南楼画角 提交于 2020-06-09 05:41:09
问题 Final Goal: my company will start use Firestore to update transaction status to our Mobile Application and Angular 9 frontend. Immediate challenge: learn how use Custom Token. Current issue: I get this erro although it is owner: "error": { "code": 403, "message": "Missing or insufficient permissions.", "status": "PERMISSION_DENIED" } I can't understand why getting PERMISSION_DENIED if the idToken is related to the Collection Owner. IAM Admin showing the user is owner: Steps to reproduce: 1 -

Missing or insufficient permissions during post a document to Firestore using Custom Token

别说谁变了你拦得住时间么 提交于 2020-06-09 05:40:10
问题 Final Goal: my company will start use Firestore to update transaction status to our Mobile Application and Angular 9 frontend. Immediate challenge: learn how use Custom Token. Current issue: I get this erro although it is owner: "error": { "code": 403, "message": "Missing or insufficient permissions.", "status": "PERMISSION_DENIED" } I can't understand why getting PERMISSION_DENIED if the idToken is related to the Collection Owner. IAM Admin showing the user is owner: Steps to reproduce: 1 -

Want to read data one by one?

谁都会走 提交于 2020-06-09 05:38:14
问题 I am beginner to Android. I want to read all orders one by one and show them in table form. With this code it shows only data of last order. public class plctovst extends AppCompatActivity { RecyclerView recyclermanu; RecyclerView.LayoutManager manager; TableLayout tableLayout; FirebaseRecyclerAdapter<orders, orderViewHolder> adapter; FirebaseDatabase db; DatabaseReference ref; String cnic; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);

Select image option inside a Dialog

醉酒当歌 提交于 2020-06-09 05:17:36
问题 I'm developing an android application using Java and Firebase. I want to to edit and update the data stored inside Firebase Database. For this I'm using a dialog where i can retrieve the data and update it. Here is my coding. Adapter class. public class AdminAdapter extends RecyclerView.Adapter<AdminAdapter.AdminHolder> { UpdateInterface updateInterface; String noteId="",noteDate=""; private Context mContext; private List<Upload> mUploads; public AdminAdapter(Context context,List<Upload>

Select image option inside a Dialog

送分小仙女□ 提交于 2020-06-09 05:17:11
问题 I'm developing an android application using Java and Firebase. I want to to edit and update the data stored inside Firebase Database. For this I'm using a dialog where i can retrieve the data and update it. Here is my coding. Adapter class. public class AdminAdapter extends RecyclerView.Adapter<AdminAdapter.AdminHolder> { UpdateInterface updateInterface; String noteId="",noteDate=""; private Context mContext; private List<Upload> mUploads; public AdminAdapter(Context context,List<Upload>

Firebase Functions: Support Global variable across functions

限于喜欢 提交于 2020-06-09 05:15:48
问题 I want to cache most recent records (say last 24 hrs) in a http firebase function. In a http firebase function (say fetchLastXRecords), I look for the record in cache (defined Global variable to store the records) if not found fetch from database and set cache. Problem arises when I want to update any record of cache because this Global variable is not accessible by other firebase functions (could be real time database change triggers). What could be a good approach to update the records in

Firebase - Invalid JSON data or key values. Key values can’t contain $ # [ ] / or

…衆ロ難τιáo~ 提交于 2020-06-07 21:11:58
问题 I'm trying to import my JSON file into my Firebase but it keeps giving me this error. I don't know why this JSON file isn't allowed to be imported into since JSONLint says it's a valid JSON file. Here's the file: { "Featured" : { "artist" : "james turell", "artistEPK" : "artistsownepk.pdf", "author" : "john queue author", "date" : "7/28/2016", "fullScreenImg" : "https://firebasestorage.googleapis.com/v0/b/wallplay-a8440.appspot.com/o/Screen%20Shot%202016-06-08%20at%2012.00.06%20PM.png?alt

Firebase - Invalid JSON data or key values. Key values can’t contain $ # [ ] / or

隐身守侯 提交于 2020-06-07 21:10:10
问题 I'm trying to import my JSON file into my Firebase but it keeps giving me this error. I don't know why this JSON file isn't allowed to be imported into since JSONLint says it's a valid JSON file. Here's the file: { "Featured" : { "artist" : "james turell", "artistEPK" : "artistsownepk.pdf", "author" : "john queue author", "date" : "7/28/2016", "fullScreenImg" : "https://firebasestorage.googleapis.com/v0/b/wallplay-a8440.appspot.com/o/Screen%20Shot%202016-06-08%20at%2012.00.06%20PM.png?alt