Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

[preferences] Sync Preferences over iCloud for iOS

オープン
#2,308 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
ios, swift
領域
mobile

調査の方向性

まず、issueで説明されている@capacitor/preferencesプラグインとNSUbiquitousKeyValueStore APIから始め、リンクされているAppleのドキュメントとチュートリアルを確認します。iOSで特定のプレフィックスを持つキーの動作を定義し、その他のAppleまたはAndroidプラットフォームでの対象範囲を明確にします。完了とは、選択した設定がユーザーのデバイス間で同期されることを意味します。

索引モデルが issue の本文から書いたものです。

説明

platform: ios

Feature Request

Plugin

@capacitor/preferences

Description

The @capacitor/preferences plugin currently uses UserDefaults on iOS, which is great, as the preferences are stored locally and included in backups. However, the preferences are not synced between user's devices. Even though for most preferences it would probably make sense to sync them for all the user's devices.

Platform(s)

iOS (and all Apple platforms): via NSUbiquitousKeyValueStore: https://developer.apple.com/documentation/foundation/userdefaults
Android: probably has some equivalent?

Preferred Solution

iOS: add support for syncing keys with a specific prefix with NSUbiquitousKeyValueStore: https://developer.apple.com/documentation/foundation/nsubiquitouskeyvaluestore
Tutorial I found: https://www.answertopia.com/ios/synchronizing-ios-key-value-data-using-icloud/

Alternatives

Implement this as a native plugin myself. I would probably do for NSUbiquitousKeyValueStore for iOS, since that's the Apple-approved way to sync preferences between user's devices.

Additional Context

nA

主要言語
Java
スター
687
フォーク
691
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

ionic-team/capacitor-plugins のほかの issue

ionic-team/capacitor-plugins の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。