Search results for

ASWebAuthenticationSession cookie

1,295 results found

Post

Replies

Boosts

Views

Activity

Reply to Get cookies - Safari web extension iOS 18
The problem is solved by using storeId: async function getCookie(name, url) { const stores = await browser.cookies.getAllCookieStores(); for (const store of stores) { const cookie = await browser.cookies.get({ name, url, storeId: store.id }); if (cookie) return cookie; } return null; }
Topic: Safari & Web SubTopic: General Tags:
Mar ’25
Fitbit Google login Issue in WKWebView
I’m developing an app that has a Fitbit login page embedded in a WKWebView. On the Fitbit login page, there is a Google login button. When I try to log in to Fitbit via Google, some devices redirect back to the Fitbit login page even after entering the correct Google credentials. However, it works on the second attempt. I tested the same URL in the default browser, and it works fine when the page is loaded in the browser instead of inside the WebView. I tried the following workarounds but was unable to fix the issue: 1. Enabled JavaScript in WebView. 2. Tried cookie synchronization between WKWebsiteDataStore and HTTPCookieStorage.
1
0
256
Feb ’25
Regarding User Enrollment Testing
Hi Team, The User Enrollment introduced by Apple back was really great I was trying to test out that .As per the implementation details provided by apple for Simple Authentication - User Enrollment Flow. Below are the steps I followed to implement it. Step 1) Making a /.well-known/com.apple.remotemanagement url and sending a json as for byod which apple has detected successfully. Step 2) Apple making a POST request to BaseServer URL of MDM to get enrollment profile ( At this Step as there is not Authorization header I sent a 401 with WWW-Authenticate header with scheme and url as mentioned by apple) Step 3) Apple has requested With GET to get the html page to show to the user from the url mentioned in WWW-Authenticate header. Step 4) Here there is a tweak the HTML page I actually shown doesn't contains any form as it is for testing purposes. I Simply had a button which upon clicking sends a POST to my url with empty JSON using axios library where from the server I sent a 308 redirect with Location header as m
3
0
1.6k
Sep ’24
Reply to Clarification on App Tracking Transparency (ATT) and Cookie Banner Integration
I want to know the same thing. Apple's reviewers are disconnected from what the review guidelines actually say and are rejecting anything that looks like it might have cookies. I don't want to be implementing ATT and be forced to say in the app privacy information that we do tracking by Apple's definition because we don't. Someone from Apple needs to clarify why apps are being rejected on this.
Feb ’25
iOS 18 not able to clear the app safari browser cookie from local store cookie
We are getting the cookie from server side when user will do the login successful. Cookie store into app browser. This cookie need to clear when user will do the logout app. We are using the Cordova framework to create the iOS application. In Cordova i have used plugin to clear the cookie. But in iOS device not able to clear the app browser cookie. And in android device same Cordova plugin is working fine. Why the iOS device not able to clear the cookie using Cordova plugin? Plugin name - https://github.com/Cartegraph/cordova-cookie-master Kindly help me out with the solutions.
1
0
391
Feb ’25
Reply to Intermittent Failures Launching App from Universal Links using ASWebAuthenticationSession
Thank you for the post. The Universal Links should always open the app if it is configured correctly and installed on the device. It would be beneficial to find a device where, after installing the app, the browser still opens instead of the app. By examining the sysdiagnose swcutil file, we can identify any errors related to this issue. If you have a device experiencing this problem, you will be able to pinpoint the error. Can you get one of those devices and extract the swcuilt file? Given that you are handling the ASWebAuthenticationSession, there could be an issue with authentication. I have a few ideas that may be helpful: App Delegate Methods: Ensure that your app delegate handles Universal Link continuations correctly. Override the necessary methods in your app delegate to handle incoming Universal Links. ASWebAuthenticationSession Completion: Verify that you are handling the completion handler of ASWebAuthenticationSession properly. Make sure to call the completion handler w
Topic: Privacy & Security SubTopic: General Tags:
Feb ’25
Reply to Sandbox Page Is Completely Blank/Empty
My 2 cents on this: Step 1: Go to the People page. Step 2: Open Developer tools, Application and delete all Cookies for this site. Step 3: Click the Sandbox link. The page will load with errors, but the + button will be visible. Step 4: Click the + (Add) button. Step 5: Login back to App Store Connect from a new Tab. Step 6: Hit the save button on the first Tab after filling-in the details. After I added the first tester the page loads fine for me.
Jan ’25
Issues with Apple Developer Account and Revoked Certificates
Hello, I am experiencing a critical issue with my Apple Developer Program account. I successfully enrolled months ago, and my subscription is active as per my account details. However, I am now unable to access my developer membership features, and when I sign into my account it redirects me to the enrollment page as if I had never enrolled. Key details of the issue: Active subscription: My Apple Developer Program membership is active and set to renew on 17 October 2025. The subscription page confirms this, and the payment was successfully processed. REVOKED CERTIFICATES: Certificates I created weeks ago have been revoked without any explanation or notification. No email notifications: I have not received any communication from Apple regarding issues with my account or certificates. Attempts to Resolve: Cleared cookies and cache. Tried logging in on multiple devices and browsers. Signed out of all devices and logged back in. Could someone please assist me in understanding why my account is behaving t
3
0
634
Jan ’25
Reply to SFSafariViewController for 3rd party passkey authentication
While SFSafariViewController supports using passkeys to sign in to websites, if you're trying to authenticate your own app via a web sign in (such as OAuth) you'll want to use ASWebAuthenticationSession instead. This will show a managed instance of SFSafariViewController, but also provides APIs for directly completing the authentication with your native code as well. https://developer.apple.com/documentation/authenticationservices/aswebauthenticationsession If you were trying to use SFSafariViewController to avoid single-sign on, you can also consider setting prefersEphemeralWebBrowserSession on the session as well. If you're working with SwiftUI there's a better API available via EnvironmentValues.webAuthenticationSession: https://developer.apple.com/documentation/authenticationservices/webauthenticationsession/
Topic: Safari & Web SubTopic: General Tags:
Jan ’25
Hidden ASWebAuthenticationSession and Review Guidelines
Hello, Apple Team. In our iOS app, we are planning to use ASWebAuthenticationSession for cookie sharing with Safari App for single sign on. Normal steps we can think of are as follows: Start ASWebAuthenticationSession. Alert dialog shows up for user permission. If the user permits, web browser shows up. A certain our web page which set cookies is loaded, and immedeiately redirect to ASWebAuthenticationSession's callbackURLScheme url without user operation. ASWebAuthenticationSession's web browser dismissed. In this case, user does nothing on the web brwoser. So if the web browser does not appear on screen, we think user experience is much better. We find out that ASWebAuthenticationSession's web browser view controller can be hidden by using presentationAnchor(for:) method of ASWebAuthenticationPresentationContextProviding protocol. In this case, only alert dialog for user permission shows up. This is very good UX for our app. But we've found foll
3
0
2.3k
Sep ’22