Backup files to icloud in my react-native app - react-native

looking for react-native libraries or development approaches to archive the following:
My Use case
In my react-native app I want to sync pictures ( taken by users ) and other files like the user database "realm.db ( from realmjs )" with the user iCloud drive.
Question
Do I need to upload all the files with cloudkitjs to the web or is it possible to just place the files into a specific app directory and every time the user update the iphone device the -> app it will be automatically synced?
What I already tried
activating iCloud support in my app
created iCloud container
Requirements
everything should be synced within the user/customer iCloud drive
don't want to take care about GDPR guidelines
only an iOS app exisits... no need to sync data between MacOS and iOS
My Stack
react-native 0.60
typescript
Many thanks for any help which put me into the right direction.

Related

How does Expo work during and after building a package?

I'm a bit skeptical after doing a build apk on expo with a user account. The case is as follows: I must make two similar applications (A and B) for 2 companies, each one with characteristics specific to each company. When I have done "expo build apk" of the first application (A) in Expo, everything has gone well and I have been able to test the apk on a real device (not emulator). Then I build application B in expo with the same user account and everything ends well too, I have obtained an APK file. The problem I get is that when I opened app A on the real device, it was the interface of app B that started. It seemed that by using the same expo account to build, I had overwritten app B over app A. The only solution I did is to create another expo account to build the second app.
So I have two questions:
Can anyone tell me if my reasoning is correct? Does Expo only support one app per account?
When you upload the application (.APK or .AAB) to Google Play. Will the application still depend on Expo? I thought that Expo only build .apk and now it is independent file.
I really appreciate your comments and responses.

Expo app deleted know unable to deploy new app on google play store

I have created react native app using Expo and deployed it on the Google play store and it was live and working. Unfortunately, the expo app was deleted from my system.
I want to update my app with new features and bug fixes, so I created a new expo project how can I deploy it to the same app on the google play store?
The project needs to have a higher version, as the existing one, same bundleID and you need to use the same upload key to upload the app to the play store

React native automatic update from store

Hi guys I need my react native app to update it self automatically (with user consent) when new version is published to the store (both android and ios)
I need the app to download the apk or ipa and complete the update process, not using CODE PUSH or OTA,
is it possible?
The app itself can't do that.
The closest thing you can do is:
Verify app version against the version on the server (if you have a back end).
Present a button to the user which will open the app store off your platform directly at your app's page, using deep linking.
You will have to keep server and deployed app versions in sync.

React native code update

I published my first app to AppStore last night.
I just want to know if there is code change in my app,
Should I have to re-build and upload .ipa file to itunes connect again?
(Currently, I do not use CodePush and I build app with exp)
Thanks.
Expo comes with a built in CodePush equivalent.
Whenever you publish to expo (using exp publish, the XDE etc), expo builds new JS bundles and uploads them to their servers.
Users who downloaded the app from the stores will get those updates - while iOS users will get them as soon as they open the app, Android users will get them in the second time (iOS is does this syncly while Android asyncly).
Note that this does not apply to changes in the app config (app.json), including sdk upgrades or any other configuration changes.
Yes, you will need to rebuild the release version of your app and upload to the App Store as a new version.

Testing iOS app archive and keeping existing sqlite database already in use during development

following this link
Testing Workflow with Xcode's Archive feature
I am trying to build and test an iOS app archive.
The application, previously built and developed on iOS devices by means of Xcode, has a Core Data DB that has been filled during development and put in iCloud few months ago.
I would like to develop the archive by keeping the existing DB, however as it is stated in the instruction this seems not possible:
3) Delete any builds of the app from your device
and if I am not wrong, deleting the app by device means also delete sqlite file.
I know there's iCloud, but I am not sure the whole sqlite transaction log files are still available.
Do you have any solution or workaround for that ?
It is possible to preserve the data of an app separately from the app itself by using Xcode Organizer.
On the devices tab on the left under your device there are several categories. Among Screenshots and Device Logs there is also Applications. The on the main window you can select your application and below Upload and Download actions for application data are available.
So you can save your data any time and later restore it for testing purposes.