NSHTTPCookieStorage *storage = [NSHTTPCookieStorage sharedCookieStorageForGroupContainerIdentifier:identifier]; Not working between Extensions and core appHas Anyone been using App groups and the shared Cookie Storage to handle all the cookies between the App, Extensions, or watch. I am saving all of my cookies to this shared cookie storage but when I open an extension and check the cookies they are not there. I have set urlsession and everywhere possible to use this cookie storage but they are not persisting.Has anyone had a similar experience?Thanks for any help!
Search results for
ASWebAuthenticationSession cookie
1,295 results found
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
I have 2 WKWebViews in my app. They have different process pools and different configurations. I login to mail.google.com on one of them. I open mail.google.com on the other. It should not auto login to the gmail account, but it does. AFAIK, having different process pools for the webviews should solve this problem. But it doesn't? What am I missing? I am using Xcode 7.3.1 and iOS 9.3.
I haven’t tried this myself, but I do a have a suggestion. The first thing I do when debugging problems like this is double check that App Groups are working in general. You can do that as follows:in your app, get the group container URLwrite a file to the group (containing the current date, say)in your extension, get the group container URLread the file from the groupOr, if it’s more convenient, vice versa.If this fails then you have App Group problems. If it works, you know the problem is specific to shared cookie stores.Share and Enjoy — Quinn “The Eskimo!” Apple Developer Relations, Developer Technical Support, Core OS/Hardware let myEmail = eskimo + 1 + @apple.com
Topic:
App & System Services
SubTopic:
Networking
Tags:
Does anyone a nuclear bash script that deletes every certificate, crumb, trail and cookie of Xcode? with extreme prejuidice.
Topic:
Developer Tools & Services
SubTopic:
Developer Forums
Tags:
Thanks For the reply eskimo,The problem was with the actual cookies themseleves. It seems the storage was only storing the non session cookies(ones with expiration dates) to the cookies.binarycookies file. The rest were just in memory on the app and not getting carried over. I added exp dates to the cookies and manually delete those ones later on
Topic:
App & System Services
SubTopic:
Networking
Tags:
Is there a way to clear iOS Safari's cache? Or disabling it?When debugging a website on iOS, running into a situation where content is being cached despite repeated reloads. Going to Settings on the device to clear the cache is, apart from being tedious, is a nuclear option as it also clears everything else including cookies. I still use my iPhone for regular surfing…
I am an inventor, apps are totally different! I need help from someone kind please. I am trying to change the scene after my game hits max score. To a scene named NewScene here is the code for GameScene, GameView Controller and NewScene. I get the error on NewScene the error is if let cookie2 = level!.cookieAtColumn2(column, row: row){ Stating EXC_BAD_INSTRUCTION (code = EXC_I386_INVOP, subcode = 0x0) is this because i created a cookie2.swift file and linked the cookie to cookie2 instead? same with cookieAtColumn? Because the error was still appearing before i changed from cookie to cookie2.. I really have no idea why it is this difficult to start a new level. After game over ends it shows the LevelComplete button but then invokes the code ^^-EXC_BAD_INS.... If anyone has any knowledge or understanding on swift xcode please give input, any advice will be greatly valued. My email is also jackcoyle23@yahoo.com if need be. Here's the code; GAMESCENEimport SpriteKitclass GameScene: SKScene {var
Hi there,I have a popover which first prompts the user to log in. This is an ajax request sent to our API, and the session information comes back over a http only cookie. Inspecting traffic from the popover makes it seem as if the headers aren't sent or are ignored, however it's difficult to tell for sure since network traffic is erased on navigation. I don't believe this to be a CORS issue because if the user changes their cookie policy from Allow from websites I visit to Always allow the authentication works. I'd first like to know: what causes this cookie to fail between these two browser settings? It's unclear to me how the 'websites I visit' distinction works, and why a browser extension launching doesn't count as interacting with the url / resource. I suspect if I have a better understanding of what's happening here I'll be able to craft a solution.Secondly, would love any recommendtations on the best way to solve this problem. Ideally, we should be able to set the cookie
switching Gamescene and it says Thread1: EXC_BAD_INSTRUCTIONS on if let cookie= level! line.. It says unexpectedly found nil while unwrapping an Optional value. But how do i fix that exactly? Any advice would be highly valued. let (success, column, row) = convertPoint(location) if success { if let cookie = level!.cookieAtColumn(column, row: row) { swipeFromColumn = column swipeFromRow = row showSelectionIndicatorForCookie(cookie) if score >= level.targetScore { }} } }
It says unexpectedly found nil while unwrapping an Optional value.Then you have passed nil where you should not pass nil. if let cookie = level!.cookieAtColumn(column, row: row) {If this is the right line which is causing the fatal error, check `level`.With the code `level!`, you are telling Swift that crash my app when `level` is nil.Check how you have declared `level` and how you have assigned a value to it.
Topic:
Programming Languages
SubTopic:
Swift
Tags:
Hello, Below is the result of the TLSTool$ ./TLSTool s_client -connect xxxxxxxx:443 -noverify -showcerts * input stream did open * output stream did open * output stream has space * protocol: TLS 1.2 * cipher: ECDHE_RSA_WITH_AES_256_CBC_SHA384 * trust result: recoverable trust failure * certificate info: * 0 + rsaEncryption 2048 sha256-with-rsa-signature 'xxxxxxxxxx' * 1 + rsaEncryption 4096 sha256-with-rsa-signature 'Tunisian Server Certificate Authority - TunServerCA2' * 2 + rsaEncryption 4096 sha256-with-rsa-signature 'Tunisian Root Certificate Authority - TunRootCA2' * certificate data: * 0 3082067930820461a00302010202104159160412180411114e3a7d0feda87e300d06092a864886f70d01010b0500307c310b300906035504061302544e312e302c060355040a13254e6174696f6e616c204469676974616c2043657274696669636174696f6e204167656e6379313d303b0603550403133454756e697369616e2053657276657220436572746966696361746520417574686f72697479202d2054756e536572766572434132301e170d3136303431323030303030305a170d3138303431313233353935395a308186310b3009
Topic:
App & System Services
SubTopic:
Networking
Tags:
> Ideally, we should be able to set the cookie without the user having toMight be users would appreciate at least some control on their end, instead?
Topic:
Safari & Web
SubTopic:
General
Tags:
Really weird, I want to add my Iphone's UUID to the developers webstie so I can debug on my phone, not using the simulator. When I try to reach the ID's en certificate page I get redirected to the welcome page. On the welcome page the getting started info is being show. Tried clearing browser history, cookies, cache on multiple browsers but no succes. Even made a different apple ID, made no difference. Also tried it on different computers but the website keeps redirecting me to the welcome page when I try to enter the certificate part....
Its working on firefox, so i deleted the cookies on the itunes connect homepage, and now its working again.
Topic:
App Store Distribution & Marketing
SubTopic:
App Store Connect
Tags:
right click on the address bar, there you see cookies, click on that end then delete them all.
Topic:
App Store Distribution & Marketing
SubTopic:
App Store Connect
Tags: