I am using firebase to handle my data for react native apps. I am new to both of them. I use:
firebase.database().ref(`/users/${currentUser.uid}/myEmployess/`).push({ name, phone, shift });
To push the data. My question is why the first root should be named users? for instance, i used myUsers and it did create anything on the firebase.
Related
I am creating a front end app with ReactJS that uses Supabase for backend.
At the moment I am able to create users by signUp() function. All works fine but I am at the point that I want the existing user to be able to add new users but this seems impossible from the front end and I would like to know if there is any way it can be done.
There are some functions that can be used only from server side (createUser() and inviteUserByEmail()) but they need the service_role key and I wouldn't like it to be shown on the frontend.
I have 2 app that i want to connect, but my only key is the id, so i want to stored in localstorage the id of the user and get the stored localstorage in another app.
in reactjs i stored data in localstorage
App1
localStorage.setItem('UsersId', data.UsersId)
App2
let UsersId= localStorage.getItem("UsersId")
console.log(UsersId)
the result is null
LocalStorage is tied to a single origin, you can't get direct access to data that was stored by a different domain. Unless you are using two sub-domains on the same domain.
I have recently started using firebase for a create-react-app project and need to add a variable - pv to user object and update it regularly.. sort of like 'points'. Is it possible to do it? I could use firestore, but that's gonna be too much work for just one variable...
There is no way to add custom values to a Firebase Authentication user profile from the client-side SDKs.
If you want to store custom values for a user profile, the idiomatic way to do so is to store them in a database - using the UID of the user to identify the additional profile data for them.
I want to replace my old app in the app store & play store. Since I want to combine the internationalization within one app this means that currently in every country there is a seperate version (app id) of the app. In future it should be one app (app id) which is enabled for all countries.
My question: how can I replace the old app with a new one (with a new app Id) without losing:
- the number of users
- the number of downloads + ratings...
Is there some way to redirect within play store / app store from a deprecated app to a new one?
Thanks,
Fahim
I have a mobile app that generically supports multiple customers. I want to link to our app in the app store (or marketplace) and pass which customer should be defaulted during the install. Is this possible?
For example:
http://itunes.apple.com/app/consume-mobile-isp-packages/id337064413?mt=8&customer=XYZ
So that when the user installs the app it will load with XYZ as the default customer.
1. How should this link be formatted?
2. How do I access this value from code?
Cheers!