Back

sign in with apple

  • 0
  • Self Hosted
  • Apple
nishp77
10 Aug, 2024, 16:16

just a qq based on docs for adding oauth, for info.plist do i have to change anything like the uri?

TL;DR
Developers were discussing issues with the 'Sign in with Apple' feature in their app. They were confused about the bundle ID and bundle URL name. The solution involved leaving the bundle URL name empty and changing the CFBundleURLName. They also considered using createOAuth2Token and adjusting the redirect URL on success.
nishp77
10 Aug, 2024, 16:17

<key>CFBundleURLTypes</key> <array> <dict> <key>CFBundleTypeRole</key> <string>Editor</string> <key>CFBundleURLName</key> <string>io.appwrite</string> <key>CFBundleURLSchemes</key> <array> <string>appwrite-callback-<PROJECT_ID></string> </array> </dict> </array>

Steven
11 Aug, 2024, 04:25

ya, change CFBundleURLName

nishp77
15 Aug, 2024, 18:28

@Steven how about the redirect url on success?

TypeScript
                    try await appwriteClient.account.createOAuth2Session(provider: .apple,)
nishp77
15 Aug, 2024, 18:32

could we use createOAuth2Token?

Steven
15 Aug, 2024, 19:24

Leave it empty

nishp77
15 Aug, 2024, 19:55

what goes in the bundleurlname?

nishp77
15 Aug, 2024, 20:35

Issue here when it goes to safari, in app it shows everything correctly

Steven
15 Aug, 2024, 20:44

Your bundle id?

nishp77
15 Aug, 2024, 20:47

did that

nishp77
15 Aug, 2024, 20:49

When i open app and tap with sign on button shows everything correctly but once it opens the browser dnt know why it doesnt show the app name

nishp77
15 Aug, 2024, 20:50

this is my plist

nishp77
15 Aug, 2024, 21:00

no worries I resolved it

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more