Tracking Stability Improvements (v3.3.3)

No code changes are required to upgrade from 3.3.2 to 3.3.3. There is no new API; this release reduces cases where tracking stopped or recording went silent. Please check only 6. Where the error case changes and 7. Where the behavior changes below.

1. When storage runs low

Situation3.3.23.3.3
Less than 200MB of free storage when tracking startsOnly tracking that keeps recording files was blockedAll tracking does not start, and didFail(error: .insufficientStorage) (11008) is called
A temporary recording file cannot be created or written during tracking (enough storage)Recording stopped with didFail(error: .unknown). Tracking stayed in progress, so recording could be missing for hoursRecording and uploading continue as is (no callback)
Free storage drops below 10MB during tracking and recording files cannot be writtenSame as abovedidFail(error: .insufficientStorage) (11008), then the session is closed normally and didClose is called

When you receive insufficientStorage, ask the user to free up storage. If it arrives during tracking, the tracking up to that point is closed normally and a report is created.

2. Better resume after interruptions

Handling of recording that stops for an alarm, Siri, etc. and then restarts has been improved. The callback order (didInterrupt() → didResume()) is the same.

Situation3.3.23.3.3
Another interruption arrives while resuming (e.g. Siri right after turning off an alarm)The resume did not finish, and if the app was in the foreground, tracking ended with audioInitializationFailedThe SDK stops the resume in progress, waits again, and resumes when the interruption ends
Siri is using the microphone and the resume is refusedRetried after 30 secondsRetried after about 5 seconds
The recording engine cannot restart right after an alarm endsAll later resume attempts were blocked, so recording could be missing until the app was openedThe SDK retries right away and resumes. If it still cannot, tracking does not end and the SDK checks again every 30 seconds
The time recording was pausedThe first 30-second chunk after resuming could exceed its length and lose a few secondsThe paused time is filled with exact silence and nothing is cut

3. Connecting and disconnecting earphones

Situation3.3.23.3.3
Bluetooth earphones such as AirPods are disconnected during trackingThe audio engine restarted, leaving 2–4 seconds of missing recording each timeNo restart, no missing recording
Wired earphones are plugged in while another app plays musicWhen the music was played again, recording could stop and not resume until the app was openedRecording does not stop
A device that changes the microphone, such as wired earphones, is connectedRarely, recording stopped without an errorRecording continues

The SDK always records with the device's built-in microphone. Connecting earphones does not change the recording input.

4. Upload error 408

Situation3.3.23.3.3
A chunk upload receives HTTP 408 (request timeout) during trackingTracking ended without retrying, didFail(error: .uploadTrackingTerminated) (23499)Retried at 3-second intervals; if it still fails, only that chunk is skipped and tracking continues. didFail(error: .httpStatus) (23500)

This is the same handling as 5xx server errors. Other 4xx errors (including 429) end tracking as before (23499).

5. Where the auth token is stored

The SDK auth token issued with appId / appSecret is now stored in the Keychain.

  • It is stored as an item that can be read while the device is locked and is not included in backups (AfterFirstUnlockThisDeviceOnly), so the token can be refreshed during overnight tracking with the screen locked.
  • A token saved by 3.3.2 is moved automatically on the first launch of 3.3.3 and is not reissued.
  • After the app is deleted and reinstalled, the previous token is not used and a new one is issued.
  • If the Keychain cannot be read or written, the SDK issues a new token or keeps it only in memory and continues tracking. Your app receives no callback.

6. Where the error case changes

As a rule, 3.3.x does not change the error cases your app receives, but the following change.

Situation3.3.23.3.3
Storage runs out during trackingunknown (tracking stays in progress)insufficientStorage (11008), then didClose
Tracking that does not keep recording files starts with less than 200MB of storageTracking startsinsufficientStorage (11008), no session is created
Upload 408uploadTrackingTerminated (23499, tracking ends)httpStatus (23500, tracking continues)
Another interruption while resumingaudioInitializationFailed (tracking ends)No callback (waits to resume)

Code that treats uploadTrackingTerminated or 23499 as "tracking has ended" can stay as is. A 408 no longer comes through this path.

7. Where the behavior changes

  • Tracking that does not keep recording files also checks storage (200MB) at start.
  • The token is stored in the Keychain (5. above).

8. Good to know

📘

Recording can stop until the app is opened if an emergency or safety alert arrives while the screen is locked

Same as 3.3.2. didFail(error: .cannotActivateInBackground) is called, and the SDK resumes recording automatically when the user opens the app. For details, see "Good to know" in Error Codes and Tracking State (v3.3.2).

📘

Resuming can be delayed while another app keeps playing audio

If another app (music, video, calls, etc.) keeps using audio after an interruption, the SDK waits instead of resuming so that it does not use the microphone during a call (didDetectOtherAppAudioActive()). If the app stays in the background for a long time, iOS may suspend it briefly and delay the next check. Tracking resumes when the other app stops playing or the app returns to the foreground. For details, see the Other App Audio Handling guide.


Did this page help you?