I am having trouble implementing the Sign in with Apple button to work on both macOS and iOS platforms seamlessly with the Web implementation using AppleJS.
So far I have gotten it to work perfectly when developing and testing on my MacBook. However, upon checking the webpage using iOS Safari, I am redirected to a page with the following error:
"invalid_request. No AppPlatform or Primary app for the web application"
This is in the header of my HTML file:
<meta name="appleid-signin-client-id" content="com.andrei.testapp">
<meta name="appleid-signin-scope" content="name email">
<meta name="appleid-signin-redirect-uri" content="https://www.google.com">
<meta name="appleid-signin-state" content="[STATE]">
<meta name="appleid-signin-use-popup" content="true"> <!-- or false defaults to false -->
This is in the body of my HTML file:
<div id="appleid-signin" data-color="white" data-border="true" data-type="sign in"></div>
Does anybody know how to remedy this issue? I find it odd that once it works perfectly on macOS, it just doesn't for iOS