Ok, I got it. If SIRI kicks in during audio session initialization, some AVAudioSession methods will return an error code 'siri' or AVAudioSessionErrorCodeSiriIsRecording. If the session is initialized with success, then I can rely on the interruption notification.
Sorry for the fuss. Thanks, Beinan On Tue, Oct 28, 2014 at 3:28 PM, Beinan Li <li.bei...@gmail.com> wrote: > Hello CocoaDev: > > My app can be interrupted by SIRI before registering an interruption > notification using AVAudioSession. The route-change notification is not > registered at the time either. > > The app needs to tell the difference between waking up from SIRI's > interruption > and something else. So I need an indicator or notification related to > SIRI. > > According to Xcode doc, there is only an error code: > AVAudioSessionErrorCodeSiriIsRecording related to SIRI in the AudioSession > support. And I don't even know how to retrieve it. > > Is there a way get more info on the SIRI status at runtime? > > Thanks, > Beinan > > _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com