new Azure Spatial Anchors 2.7.0 SDK fails to upload cloud anchor in iOS 14.2

Mokin 1 Reputation point
2020-11-14T17:57:06.403+00:00

I've been using the old 2.2.1 SDK for a while until yesterday when I updated my iPhone 11 Pro to iOS 14.2 and upgraded to 2.7.0 SDK. Calling Cloud Anchor Upload sometimes works, other times it just timeout without giving any sort of error response. I believe this happens when the internet lags or lost connection temporarily in the middle of the ASACloudSession (before uploading the cloud Anchor) and causes any future writes to fail.

2020-11-14 12:53:09.849408-0500 Insight[648:105216] Task <910D70EB-B661-4CAB-96F9-DD07B80DECBE>.<10> finished with error [-1009] Error Domain=NSURLErrorDomain Code=-1009 "The Internet connection appears to be offline." UserInfo={_kCFStreamErrorCodeKey=50, NSUnderlyingError=0x138d34640 {Error Domain=kCFErrorDomainCFNetwork Code=-1009 "(null)" UserInfo={_kCFStreamErrorCodeKey=50, _kCFStreamErrorDomainKey=1}}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <910D70EB-B661-4CAB-96F9-DD07B80DECBE>.<10>, _NSURLErrorRelatedURLSessionTaskErrorKey=(
"LocalDataTask <910D70EB-B661-4CAB-96F9-DD07B80DECBE>.<10>"
), NSLocalizedDescription=The Internet connection appears to be offline., NSErrorFailingURLStringKey=https://mobile.events.data.microsoft.com/OneCollector/1.0, NSErrorFailingURLKey=https://mobile.events.data.microsoft.com/OneCollector/1.0, _kCFStreamErrorDomainKey=1}

2020-11-14 12:53:10.044591-0500 Insight[648:105200] Connection 37: encountered error(1:53)

Azure Spatial Anchors
Azure Spatial Anchors
An Azure service that is used to build immersive three-dimensional applications and experiences that map, persist, and restore content or points of interest at real-world scale.
88 questions
{count} votes

2 answers

Sort by: Most helpful
  1. cmel 1 Reputation point
    2020-12-04T10:02:14.797+00:00

    We experience the same issue.
    Our analysis on this reveals at least 2 different issues :

    SSL concerns of SDK backend subdomains related to IOS14 certificate transparency policy for :
    "*.events.data.microsoft.com"

    For SSL certificates transparency analysis we may see here that at least 3 certificates have only a single CT Log. Apple requires now at least 2 CT for a certificate valid for less than 15 months.

    https://transparencyreport.google.com/https/certificates?cert_search_auth=&cert_search_cert=p:bW9iaWxlLmV2ZW50cy5kYXRhLm1pY3Jvc29mdC5jb206dHJ1ZTpmYWxzZTo6Q0FvUUFRPT0&cert_search=include_subdomains:false;domain:mobile.events.data.microsoft.com&lu=cert_search_cert

    More details on Apple CT policy :
    https://support.apple.com/en-us/HT205280

    When the IOS SDK makes a request, if the SSL certificates returned have less than 2 CT logs, it will be considered "not valid" by IOS.

    2nd issue identified :
    Some machines / IPs on the backend randomly won't answer to requests. Example for the IP : 52.114.75.78 which is on the pool of ips behind "mobile.events.data.microsoft.com"

    45125-capt-sslreport-mobileeventsdata.png

    I'm looking forward for updates from Microsoft Team.


  2. AshokPeddakotla-MSFT 30,076 Reputation points
    2021-01-09T02:28:33.653+00:00

    @Mokin and @cmel

    We have just released ASA SDK 2.7.1. The release notes are located here. The release is intended to address this issue and unblock developers experiencing issues with iOS 14.2+.

    Do let us know if you face any issues.

    If an answer is helpful, please "Accept answer" or "Up-Vote" for the same which might be beneficial to other community members reading this thread.

    0 comments No comments