Posts

Post marked as solved
5 Replies
8.1k Views
Hello,I'm trying to implement Sign In with Apple on my website. Currently I got this error: Your request could not be completed due to an error. Try again later.You can check this here: https://hanashi.dev/apple/I tested it with Apple JS and with the code example from this Git repository: https://github.com/aaronpk/sign-in-with-apple-exampleI don't know what is wrong. Please help.kind regardsPeter
Posted
by Hanashi.
Last updated
.
Post marked as solved
4 Replies
4.8k Views
Hello, I would send POST data to the Sign In with Apple REST API, but corrently I got the error 403 Forbidden on my server. If i test it with curl in the terminal, it works.Here is the php code for this:$ch = curl_init(); curl_setopt($ch, CURLOPT_URL, 'https://appleid.apple.com/auth/token'); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($myArray)); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $serverOutput = curl_exec($ch); if(curl_exec($ch) === false) { echo 'Curl error: ' . curl_error($ch); } curl_close ($ch); print_r($serverOutput);I got http code 403 by apple server. What is wrong?
Posted
by Hanashi.
Last updated
.
Post not yet marked as solved
1 Replies
1.9k Views
Is there an simple way to use the UISplitViewController with SwiftUI? Currently I use a NavigationView. The problem is, that the ListView on the left only shows in landscape mode and not in portrait mode. This is the example of my code: import SwiftUI struct ContentView: View { &#9;&#9;var body: some View { &#9;&#9;&#9;&#9;NavigationView { &#9;&#9;&#9;&#9;&#9;&#9;ListView() &#9;&#9;&#9;&#9;&#9;&#9;DetailView() &#9;&#9;&#9;}.navigationViewStyle(DoubleColumnNavigationViewStyle()) &#9;&#9;} } struct ContentView_Previews: PreviewProvider { &#9;&#9;static var previews: some View { &#9;&#9;&#9;&#9;ContentView() &#9;&#9;} } struct ListView: View { &#9;&#9;var body: some View { &#9;&#9;&#9;&#9;List(0 ..< 5) { item in &#9;&#9;&#9;&#9;&#9;&#9;NavigationLink(destination: DetailView()) { &#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;Text("List Item") &#9;&#9;&#9;&#9;&#9;&#9;} &#9;&#9;&#9;&#9;} &#9;&#9;&#9;&#9;.navigationTitle("My List") &#9;&#9;} } struct DetailView: View { &#9;&#9;var body: some View { &#9;&#9;&#9;&#9;Text("Hallo") &#9;&#9;} } I tested it with a padding after navigationViewStyle but the List View only displays in landscape mode.
Posted
by Hanashi.
Last updated
.
Post not yet marked as solved
0 Replies
1.1k Views
Hello,I made this tutorial to implement Sign In with Apple on my page: https://developer.okta.com/blog/2019/06/04/what-the-heck-is-sign-in-with-appleBut actually I got "invalid_client" from the apple server. You could test it here: https://hanashi.dev/apple/What do I wrong?kind regardsPeter
Posted
by Hanashi.
Last updated
.
Post not yet marked as solved
5 Replies
4.3k Views
Hello,I would use Sign In with Apple on my Homepage. Now I have one question and a problem:Where can I find the Client ID. In documentation is a hint for this: "The developer’s client identifier, as provided by WWDR. You must obtain a client identifier from WWDR before you can use Sign In with Apple." But where can I find this?I tested the identifier of the app id and the identifier of the service id, but I got this error: AUTH_ALERT_SIGN_UP_NOT_COMPLETED.Thanks for your help.kind regardsPeter
Posted
by Hanashi.
Last updated
.