Post

Replies

Boosts

Views

Activity

ASWebAuthenticationSession failing to access cookies only in Simulator
We are using an ASWebAuthenticationSession to authenticate using an already logged in session in Safari. This works fine on real hardware. In Simulator from iOS13.5, the callback URL is always missing the session ID which indicates that ASWebAuthenticationSession couldn't access the cookies. We are not using session cookies. As documented here: https://developer.apple.com/documentation/authenticationservices/authenticating_a_user_through_a_web_service Does anyone have any suggestion how to debug this and figure out if the problem is on our side or iOS side?
3
0
2k
Jun ’20
preferredPeakBitrate not having effect on iOS13 (?)
Hi,Our use case is linear TV streaming.We've been using AVPlayerItem's preferredPeakBitrate to limit the max bitrate for our bandwidth concious users.Our code does it in this order:var playerItem = AVPlayerItem(asset: asset) playerItem.preferredPeakBitrate = x var player = AVPlayer() player.replaceCurrentItem(with: playerItem)This has been working fine.Recently we got a report from a user on iOS13 claiming that his peak bitrate wasn't respected. We were able to confirm the report.Seems like the preferredPeakBitrate value is ignored unless we set it after the AVPlayerItem has reached .readyToPlay.Our experience from iOS12 and earlier is that the above code is fine.Has anyone else noticed this?
2
0
1.4k
Mar ’20
Test In-App purchase on AdHoc build
Hi,In the documentation it says you must use a sandbox account when testing In-App purchase using the Sandbox.But I just noticed that (currently on 10.3 release) the StoreKit popup is saying "Sandbox" even when using a normal account but the app is an AdHoc build.Is this expected that a normal account also uses the "Sandbox" when running a AdHoc distribution build?Thanks in advance,Anders
3
0
4.5k
Mar ’17
AVPlayer and Cookie Expiration
Hi,I have some questions about how AVPlayer handles updates of a cookie's expiration time.We do something like this:1) Send a GET request to server which sets authentication cookie. This cookie has a short expiration time, CookieExpiryTime.2) Start AVPlayer. The authentication cookie is included in the AES key request.3) Every n minutes (where n is CookieExpiryTime/2), send new GET request to authentication server to get updated cookie expiration time. By logging all cookies in NSHTTPCookieStorage.sharedHTTPCookieStorage() we can see that the expiration time of the cookie is updated.The problem:When a key is requested after the expiration time of the first cookie from 1), the cookie is no longer included in the AES key request.But shouldn't the updated cookie (with extended expiration time) be considered?Question 1) Does AVPlayer filter out expired cookies when doing the AES key requests?Question 2) Does AVPlayer check NSHTTPCookieStorage.sharedHTTPCookieStorage() for updated cookies after init?Thanks,Anders
1
0
1.4k
Dec ’15