@portal-hq/icloud-storage
Portal iCloud backup storage
The @portal-hq/icloud-storage
package contains a storage adapter intended for use with the @portal-hq/core
package.
This storage adapter allows end users to save backup MPC shares to their iCloud filesystem.
Note: This storage provider is only supported on iOS devices, so should not be used as your sole backup storage adapter unless you are explicitly releasing an iOS-only app.
Note: you will need a paid developer account to use iCloud backup
Basic usage
Install the package in your React Native project.
Import the package into the component where you initialize the Portal class
Register your storage adapter and initialize the Portal class
Check if the user is connected to iCloud
Setting up iCloud Backups in your iOS app
Open your project in XCode.
Navigate to
Signing & Capabilities
:Click the
+
Button right below it, scroll down and selectiCloud
.Under iCloud Services select
Key-value storage
.
Last updated