5 Replies
      Latest reply on Apr 21, 2019 1:02 AM by eskimo
      gtufano Level 1 Level 1 (0 points)

        Subject says basically all. I have a CarPlay audio app whose network accesses (started answering playableContentManager(_:,initiatePlaybackOfContentItemAt:, completionHandler:)) fails when the application is started from the CarPlay screen with the phone locked.

         

        All calls are https; no data protection active; the app works correctly when cached content is played (ie: it's the network access that fails); the app works correctly if the phone is unlocked.

         

        I'd say this started around iOS12 (I'm not sure, though)... it was working when I started implementing CarPlay (~iOS10).

         

        I cannot find any documentation for the behaviour. Is this expected (and there is some workaround) or should I file a bug against CarPlay?

         

        Thank you in advance!

        • Re: CarPlay audio app cannot access network when phone is locked
          KMT Level 9 Level 9 (14,355 points)

               >it's the network access that fails

           

          Seen this SO thread?

          https://stackoverflow.com/questions/53190068/carplay-audio-app-cant-start-when-launched-from-locked-device

           

          ...still no joy, might want to move this to the Networking forum - see FAQ#4 here: For Best Results - Read the Label

           

          Good luck.

            • Re: CarPlay audio app cannot access network when phone is locked
              gtufano Level 1 Level 1 (0 points)

              Yes, I seen it. Session is opened correctly (and requests are made with https). btw: this used to work until some relatively recent iOS version...

              I suspect this is somewhat related to the "USB accessory" security thing... it seems that the customers with USB connection to carPlay have no problem (or, at least, they did not tell me), while CarPlay accessed via Bluetooth have the problem. But I'm unsure, because I don't have an USB CarPlay head to test.

              I'll try to move to netowrking, thank you (and I'll file a bug next).

              (sorry for the late reply... this forum used to send emails when question were answered)

            • Re: CarPlay audio app cannot access network when phone is locked
              eskimo Apple Staff Apple Staff (11,475 points)

              Where is this data located?  On the local Wi-Fi network?  Or is it on the wider Internet, and thus accessible via WWAN?

              Share and Enjoy

              Quinn “The Eskimo!”
              Apple Developer Relations, Developer Technical Support, Core OS/Hardware
              let myEmail = "eskimo" + "1" + "@apple.com"

                • Re: CarPlay audio app cannot access network when phone is locked
                  gtufano Level 1 Level 1 (0 points)

                  Data are on the Internet. The app basically download a playlist with metadata, mixing info and the such, then streams from the Internet. The playlist download fails immediately (every network access fails, the app also try to download a channel list (not critical) but the network acccess also fails.

                  The app also supports an offline mode, in which the playlist and the audio to be streamed are local, and this works correctly.

                  The app used to work before, for sure before iOS 12, I suspect until iOS 12.2 (but I'm not sure, I'm not a great user of CarPlay, but I didn't have any customer feedback before).

                    • Re: CarPlay audio app cannot access network when phone is locked
                      eskimo Apple Staff Apple Staff (11,475 points)

                      Data are on the Internet.

                      Hmmm, I can’t think of any reason that’d fail.  I suspect that there’s something CarPlay-specific going on here, but my knowledge of that domain is very limited )-:  If you get completely stuck then you should open a DTS tech support incident and one of us can help you out officially.

                      The app used to work before, for sure before iOS 12, I suspect until iOS 12.2 (but I'm not sure, I'm not a great user of CarPlay, but I didn't have any customer feedback before).

                      Hmmmm, either way that sounds like a regression, and thus definitely worth a bug report as well.

                      Please post your bug number, just for the record.

                      Share and Enjoy

                      Quinn “The Eskimo!”
                      Apple Developer Relations, Developer Technical Support, Core OS/Hardware
                      let myEmail = "eskimo" + "1" + "@apple.com"