Socket
Socket
Sign inDemoInstall

@portal-hq/icloud-storage

Package Overview
Dependencies
2
Maintainers
1
Versions
87
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @portal-hq/icloud-storage

Portal's iCloud storage adapter


Version published
Weekly downloads
134
increased by139.29%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

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

FAQs

Last updated on 21 Apr 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc