__CAPGO_KEEP_0__ - __CAPGO_KEEP_1__ アプリのリアルタイム更新

Apple IOS ログイン

GitHub

AppleログインをIOSに設定するために必要なものを簡単に説明します。

  1. アプリの機能を設定します。

    このようにするには、Xcodeを開き、 App XCodeアプリ

  2. 正しいターゲットを選択してください。

    XCodeアプリターゲット

  3. 機能を追加するようにしてください。 Sign in with Apple 機能を追加するようにしてください。

    App XCode への機能追加

    App XCode への機能追加

  4. Apple ログインをアプリに初期化する

    // onMounted is vue specific
    onMounted(() => {
    SocialLogin.initialize({
    apple: {}
    })
    });
  5. Create a button that will begin the login process.

    Said button should call the following function:

    async function loginApple() {
    const res = await SocialLogin.login({
    provider: 'apple',
    options: {}
    })
  6. Run your app on a PHYSICAL device and test it.

    If you followed the steps closely you will see the following screen after clicking your button.

    Apple Sign In prompt on iOS device

That’s it! You are all set.

Call initialize __CAPGO_KEEP_0__/__CAPGO_KEEP_1__ apple iOSでは、 clientId __CAPGO_KEEP_0__は、直接オペレーティングシステムによって使用されていません。プラグインは、どのプロバイダーを初期化するかを知るためにそれを使用します。

await SocialLogin.initialize({
apple: {
clientId: 'your-client-id',
},
});
const res = await SocialLogin.login({
provider: 'apple',
options: {
scopes: ['email', 'name'],
},
});

Appleログインから続けて

「Appleログインから続けて」

あなたが Appleログイン を使用している場合、 capgo/capacitor capgo/capacitor capgo/capacitor 実装詳細については @capgo/capacitor-social-login に @capgo/capacitor-passkey 実装詳細については @capgo/capacitor-passkey に @capgo/capacitor-native-biometric 実装詳細については @capgo/capacitor-native-biometric、 2要素認証 実装詳細については 2要素認証 に