I've followed the documentation - https://developer.apple.com/documentation/sign_in_with_apple/sign_in_with_apple_js/configuring_your_webpage_for_sign_in_with_apple to setup the web popup version of Sign in with Apple. It is working up to the point that I complete the sign-in flow, but then the pop-up remains open on the success screen. No AppleIDSignInOnSuccess events are caught by my event listener. When I manually close the sign-in popup, a AppleIDSignInOnFailure event fires (see attached).
I'm thinking this has something to do with me trying to get this to work from within my local development environment, since Apple doesn't allow a localhost port or an IP address to be assinged as the redirectURI for the service...
The host specified in appleid-signin-redirect-uri must include a domain name. It can’t be an IP address or localhost. If that is my problem, then how am I supposed to develop and test the addition of this feature from within my local dev environment?
Any guidance would be much appreciated.
AppleIDSignInOnFailure event from web console - https://developer.apple.com/forums/content/attachment/3bb5fb04-a95a-467a-b1db-20f94df80eb7
Post
Replies
Boosts
Views
Activity
When I click on my in-app subscription to edit the values, the page breaks and shows loading indefinitely.
None of the info populates and I can't edit anything. I've tried clearing caches/data, changing browsers.
The console error appears to reference a few JS errors:
javascript
"TypeError: Cannot read property 'value' of undefined
at n.$scope.setupPageData (https://appstoreconnect.apple.com/itc/js/ng-app/controllers/app/iap_details_withIP_cntrl.3459d16bc3.js:230:50)
at https://appstoreconnect.apple.com/itc/js/ng-app/controllers/app/iap_details_withIP_cntrl.3459d16bc3.js:3876:28
at n.$digest (https://appstoreconnect.apple.com/itc/js/compiled/lib/vendor.16d4284eeb.js:1:409859)
at n.$apply (https://appstoreconnect.apple.com/itc/js/compiled/lib/vendor.16d4284eeb.js:1:411308)
at i (https://appstoreconnect.apple.com/itc/js/compiled/lib/vendor.16d4284eeb.js:1:386680)
at u (https://appstoreconnect.apple.com/itc/js/compiled/lib/vendor.16d4284eeb.js:1:388893)
at XMLHttpRequest.y.onload (https://appstoreconnect.apple.com/itc/js/compiled/lib/vendor.16d4284eeb.js:1:389368)"
javascript
"TypeError: Cannot read property 'length' of undefined
at $scope.refreshIAPDetails (https://appstoreconnect.apple.com/itc/js/ng-app/controllers/app/iap_details_withIP_cntrl.3459d16bc3.js:3245:48)
at n.$digest (https://appstoreconnect.apple.com/itc/js/compiled/lib/vendor.16d4284eeb.js:1:409696)
at n.$apply (https://appstoreconnect.apple.com/itc/js/compiled/lib/vendor.16d4284eeb.js:1:411308)
at i (https://appstoreconnect.apple.com/itc/js/compiled/lib/vendor.16d4284eeb.js:1:386680)
at u (https://appstoreconnect.apple.com/itc/js/compiled/lib/vendor.16d4284eeb.js:1:388893)
at XMLHttpRequest.y.onload (https://appstoreconnect.apple.com/itc/js/compiled/lib/vendor.16d4284eeb.js:1:389368)"
Not sure how to contact App Store Connect support to get help with this. It's been broken for quite a while.