Copy the database and develop users to Firebase
Once your app is uploaded to stores, it’s important to know the difference between testing data and production data.
Testing data: all data stored in Apphive Editor. Production data: all data stored in your Firebase account.
Choose the collection you wish to review. If the switch for Development data is on, it will be TESTING data. This data will not be refected in your compiled app or your Firebase account.
![](https://docs.apphive.io/~gitbook/image?url=https%3A%2F%2Fcommunity.apphive.io%2Fuploads%2Fdefault%2Foriginal%2F2X%2F7%2F7dd406b1e9f8e641300f965d7562576a281cc374.png&width=768&dpr=4&quality=100&sign=5626ec2f&sv=1)
If you want to add data to your APK or the compiled app, turn the switch to Production data. This option will be available once your app is compiled for the first time.
To copy this data, you only have to click on the Copy to Production button, and send the Testing Data to Production data (APK or app in stores).
![](https://docs.apphive.io/~gitbook/image?url=https%3A%2F%2Fcommunity.apphive.io%2Fuploads%2Fdefault%2Foriginal%2F2X%2F1%2F1044e26fdeaf073b50a13b79704cecc8cbb46758.png&width=768&dpr=4&quality=100&sign=e1481756&sv=1)
From this pannel, you can also import and export data.
USERS:
![](https://docs.apphive.io/~gitbook/image?url=https%3A%2F%2Fcommunity.apphive.io%2Fuploads%2Fdefault%2Foriginal%2F2X%2F7%2F7778a63474fa87526332f025f7f483ac7532089e.png&width=768&dpr=4&quality=100&sign=392cd815&sv=1)
Enter the “members” section.
![](https://docs.apphive.io/~gitbook/image?url=https%3A%2F%2Fcommunity.apphive.io%2Fuploads%2Fdefault%2Foriginal%2F2X%2F2%2F2e26fe6a49a4c88c272b321e00c8b276ee631414.png&width=768&dpr=4&quality=100&sign=448ef175&sv=1)
If the “Test members” switch is on, all users will be stored in Testing.
![](https://docs.apphive.io/~gitbook/image?url=https%3A%2F%2Fcommunity.apphive.io%2Fuploads%2Fdefault%2Foriginal%2F2X%2F7%2F76d6e66d7a55108160eea0093d926bb9540354ec.png&width=768&dpr=4&quality=100&sign=bdff760c&sv=1)
Change to “Production members” to see your users within your compiled app, or to register all new users in Production.
![](https://docs.apphive.io/~gitbook/image?url=https%3A%2F%2Fcommunity.apphive.io%2Fuploads%2Fdefault%2Foriginal%2F2X%2Fd%2Fde16a9805b75da22bcde3455e9454a9025cd1f5e.png&width=768&dpr=4&quality=100&sign=3c1e97a0&sv=1)
We reccomend NOT to load your final data while you’re testing your app, instead, load some data or information before making tests.
IMPORT AND EXPORT You can make it only by selecting the option from the database.
![](https://docs.apphive.io/~gitbook/image?url=https%3A%2F%2Fcommunity.apphive.io%2Fuploads%2Fdefault%2Foriginal%2F2X%2Fd%2Fded1f8e76b6bbd39dcfcb25ebca716348e634ce5.png&width=768&dpr=4&quality=100&sign=5056dd9&sv=1)
Or follow these steps:
In the Testing database, export all your DB (it will download a .json file)
![](https://docs.apphive.io/~gitbook/image?url=https%3A%2F%2Fcommunity.apphive.io%2Fuploads%2Fdefault%2Foriginal%2F2X%2F7%2F7742341f3b50ed60c768110af2f68574540fcda8.png&width=768&dpr=4&quality=100&sign=2b78e725&sv=1)
A .json file will be downloaded by turning on the Production switch. This will allow you to send all testing data to production data.
Last updated