Search results for

ASWebAuthenticationSession cookie

1,295 results found

Post

Replies

Boosts

Views

Activity

Reply to How to avoid or stop receiving Push Notifications if the user clear cookies?
Once the user has opted out of Push Notification your sending scripts will get a list of device tokens no longer opted in which you will have to remove from your side as well on receipt of the error report. Cookies are not used. The user has full control of the APNS process. The server is well aware once implemented correctly. https://developer.apple.com/library/archive/documentation/NetworkingInternet/Conceptual/NotificationProgrammingGuideForWebsites/PushNotifications/PushNotifications.html#//apple_ref/doc/uid/TP40013225-CH3-SW1
Dec ’21
URLRequest.httpShouldHandleCookies is broken beyond repair.
I create a new URLRequest(url: myUrl) object every time before calling URLSession.shared.dataTask(with: urlRequest). I wait for one request to complete before making another call, so no timing problem possible. If I set it to false, it does not inject cookies. If I set it to true, it does send cookies. So everything is fine? NO! If you sometimes set it to false for some calls and to true for other calls it will always not inject cookies. So if you set it to false, even if you set it to true for other calls it will never ever work. I don't know how they manage to create such a bug, but it require some special kind of evil intentions. Note : I always call the exact same domain and I always have my cookies.
2
0
1.7k
Nov ’21
Reply to URLRequest.httpShouldHandleCookies is broken beyond repair.
I tested further with a tool to see the https traffic (Charles). I can do this when I start the app urlRequest.httpShouldHandleCookies = true //Always inject cookies Or I can do this when I start the app urlRequest.httpShouldHandleCookies = false //Never inject cookies But if I change it on the fly, as soon as it is set to false, even if I set it to true later, it will never inject the cookies. urlRequest.httpShouldHandleCookies = isSendCookies //Never inject cookies
Topic: App & System Services SubTopic: Core OS Tags:
Nov ’21
Reply to 403 Error with URLSession.downloadTask (SwiftUI)
More information: I copied the download code from this program and created a new program. It is able to download the file (getting an HTTP status code of 200). So I now think there is something cached in the original program that is causing it to be blocked. If this were a browser, I would clear the caches/cookies/etc. How can I do that with URLSession? I deleted the CACHES folder under the Library/Containers. I even deleted the entire sandbox under Library/Containers (the program rebuilt it). Still getting the 403 error.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Nov ’21
Reply to App Store Analytics API
I can get analytics data from API but I do not how I can get dqsid? I take it from the browser cookie but I want to get dqsid param from API. Do you have any ideas? import requests import json url = https://appstoreconnect.apple.com/analytics/api/v1/data/time-series adamId = 0000000000 # App ID measures = installs # or impressionsTotalUnique cookie_dqsid = dqsid=ey.... # ????? payload = json.dumps({ adamId: [adamId], measures: [measures], frequency: day, startTime: 2021-10-16T00:00:00Z, endTime: 2021-11-14T00:00:00Z, group: { metric: measures, dimension: source, rank: DESCENDING, limit: 100 } }) headers = { 'Host': 'appstoreconnect.apple.com', 'X-Requested-By': 'dev.apple.com', 'Cookie': cookie_dqsid, 'Content-Type': 'application/json' } response = requests.request(POST, url, headers=headers, data=payload, allow_redirects=False) print(response.text)
Nov ’21
Reply to How i can export analytic data from Itunes Connect
I can get analytics data from API but I do not how I can get dqsid? I take it from the browser cookie but I want to get dqsid param from API. Do you have any ideas? import requests import json url = https://appstoreconnect.apple.com/analytics/api/v1/data/time-series adamId = 0000000000 # App ID measures = installs # or impressionsTotalUnique cookie_dqsid = dqsid=ey.... # ????? payload = json.dumps({ adamId: [adamId], measures: [measures], frequency: day, startTime: 2021-10-16T00:00:00Z, endTime: 2021-11-14T00:00:00Z, group: { metric: measures, dimension: source, rank: DESCENDING, limit: 100 } }) headers = { 'Host': 'appstoreconnect.apple.com', 'X-Requested-By': 'dev.apple.com', 'Cookie': cookie_dqsid, 'Content-Type': 'application/json' } response = requests.request(POST, url, headers=headers, data=payload, allow_redirects=False) print(response.text)
Nov ’21
Reply to iTunes Analytics API
I can get analytics data from API but I do not how I can get dqsid? I take it from the browser cookie but I want to get dqsid param from API. Do you have any ideas? import requests import json url = https://appstoreconnect.apple.com/analytics/api/v1/data/time-series adamId = 0000000000 # App ID measures = installs # or impressionsTotalUnique cookie_dqsid = dqsid=ey.... # ????? payload = json.dumps({ adamId: [adamId], measures: [measures], frequency: day, startTime: 2021-10-16T00:00:00Z, endTime: 2021-11-14T00:00:00Z, group: { metric: measures, dimension: source, rank: DESCENDING, limit: 100 } }) headers = { 'Host': 'appstoreconnect.apple.com', 'X-Requested-By': 'dev.apple.com', 'Cookie': cookie_dqsid, 'Content-Type': 'application/json' } response = requests.request(POST, url, headers=headers, data=payload, allow_redirects=False) print(response.text)
Nov ’21
Reply to App Analytical API
I can get analytics data from API but I do not how I can get dqsid? I take it from the browser cookie but I want to get dqsid param from API. Do you have any ideas? import requests import json url = https://appstoreconnect.apple.com/analytics/api/v1/data/time-series adamId = 0000000000 # App ID measures = installs # or impressionsTotalUnique cookie_dqsid = dqsid=ey.... # ????? payload = json.dumps({ adamId: [adamId], measures: [measures], frequency: day, startTime: 2021-10-16T00:00:00Z, endTime: 2021-11-14T00:00:00Z, group: { metric: measures, dimension: source, rank: DESCENDING, limit: 100 } }) headers = { 'Host': 'appstoreconnect.apple.com', 'X-Requested-By': 'dev.apple.com', 'Cookie': cookie_dqsid, 'Content-Type': 'application/json' } response = requests.request(POST, url, headers=headers, data=payload, allow_redirects=False) print(response.text)
Nov ’21
Reply to API for app analytics
I can get analytics data from API but I do not how I can get dqsid? I take it from the browser cookie but I want to get dqsid param from API. Do you have any ideas? import requests import json url = https://appstoreconnect.apple.com/analytics/api/v1/data/time-series adamId = 0000000000 # App ID measures = installs # or impressionsTotalUnique cookie_dqsid = dqsid=ey.... # ????? payload = json.dumps({ adamId: [adamId], measures: [measures], frequency: day, startTime: 2021-10-16T00:00:00Z, endTime: 2021-11-14T00:00:00Z, group: { metric: measures, dimension: source, rank: DESCENDING, limit: 100 } }) headers = { 'Host': 'appstoreconnect.apple.com', 'X-Requested-By': 'dev.apple.com', 'Cookie': cookie_dqsid, 'Content-Type': 'application/json' } response = requests.request(POST, url, headers=headers, data=payload, allow_redirects=False) print(response.text)
Nov ’21
Reply to Get data from API - App analytics acquisition
I can get analytics data from API but I do not how I can get dqsid? import requests import json url = https://appstoreconnect.apple.com/analytics/api/v1/data/time-series adamId = 0000000000 # App ID measures = installs # or impressionsTotalUnique cookie_dqsid = dqsid=ey.... # ????? payload = json.dumps({ adamId: [adamId], measures: [measures], frequency: day, startTime: 2021-10-16T00:00:00Z, endTime: 2021-11-14T00:00:00Z, group: { metric: measures, dimension: source, rank: DESCENDING, limit: 100 } }) headers = { 'Host': 'appstoreconnect.apple.com', 'X-Requested-By': 'dev.apple.com', 'Cookie': cookie_dqsid, 'Content-Type': 'application/json' } response = requests.request(POST, url, headers=headers, data=payload, allow_redirects=False) print(response.text)
Nov ’21
Reply to Why the first item I tap on a SwiftUI List becomes nil when present it in a sheet
Unfortunately, there's a known issue when you want to use @State variables inside a closure passed to .sheet. (Seems Apple does not think this issue as a thing to be fixed.) One possible workaround is declaring another view and pass the binding to it: struct UpdateStateProperty: View { var items:[Item] = [Item(name: Oranges), Item(name: Apples), Item(name: Cookies) ] @State private var presentView = false @State private var selectedItem: Item? var body: some View { List{ ForEach(items){ item in HStack{ Text(item.name) }.onTapGesture { selectedItem = item presentView.toggle() } } } .sheet(isPresented: $presentView){ MySheetView(selectedItem: $selectedItem) } } } struct MySheetView: View { @Binding var selectedItem: Item? var body: some View { Text((selectedItem?.name ?? *nil*)) } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Nov ’21
Universal Links not working IOS 13 PROD only
I have an app where we create a UAT build and PROD enterprise build internally. We have apple-app-site-association on two different servers. One for UAT and one for PROD. Apple Site Validator says both are good. Both apple-app-site-association are at the app root (not .well-known).On IOS 11.2.1, both UAT and PROD build work fine. Universal links work perfectly.On IOS 13.1 (or any 13+) UAT works. PROD does not work. This is the confusing part because both are using the same TEAM, profile and cert. Only difference is bundleID. Both bundleID's are all lowercase, except the team name. Both are all UPPERCASE. I verified what is in the app bundle as ID and what is in the apple-app-site-association file. Identical.Only difference I see is in the response from the server. PROD one returns cookie as part of response. This doesn't seem to bother ios 11 or 12. It might not bother ios 13. But just an observation.UAT Response Header : apple-app-site-associationHTTP/1.1 200 OKX-Backside-Transport: OK OK,FAIL FAILC
3
0
2.3k
Nov ’21