@portal-hq/icloud-storage
TypeScript icon, indicating that this package has built-in type declarations

4.0.3 • Public • Published

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.

Basic usage

  1. Install the package in your React Native project.

    yarn add @portal-hq/icloud-storage
    
    # OR #
    
    npm install --save @portal-hq/icloud-storage
  2. Import the package into the component where you initialize the Portal class

    import Portal from '@portal-hq/core'
    import ICloudStorage from '@portal-hq/icloud-storage'
  3. Register your storage adapter and initialize the Portal class

    const portal = new Portal({
      // ...your other config options
      backup: {
        icloud: new ICloudStorage(),
      },
    })

Setting up iCloud Backups in your iOS app

  1. Open your project in XCode.
  2. Navigate to Signing & Capabilities:

image

  1. Click the + Button right below it, scroll down and select iCloud.

image

  1. Under iCloud Services select Key-value storage.

Screen Shot 2022-11-09 at 8 05 20 PM

Readme

Keywords

none

Package Sidebar

Install

npm i @portal-hq/icloud-storage

Homepage

portalhq.io

Weekly Downloads

114

Version

4.0.3

License

MIT

Unpacked Size

28.3 kB

Total Files

10

Last publish

Collaborators

  • portal-hq-publish