Hi,
we tried to integrate the voice transcription feature in our iOS application but we encountered an issue with the SDK.
We have a HTTP Error: 401 unauthorized, with message “Tried to transcribe audio but there was a network error”
All other features (message, document, photos) work correctly and our Android version succeed to use voice transcription.
We check this list and seems ok in our side :
- Verify iOS preprod Identity Verification secret in Intercom dashboard (Security Settings → Identity Verification → iOS → Preprod)
- Ensure backend generates ios_user_hash with correct iOS preprod secret
- Upgrade Intercom SDK to latest version both apps
- Add NSSpeechRecognitionUsageDescription permission in Info.plist files
- Ensure setUserHash is called before any other Intercom method
I extract the intercom log :
[Intercom] Push Notifications Handler: AUTO
[Intercom] INFO - Checking if user identity matches existing identity.
[Intercom] INFO - User identity matches existing identity.
[Intercom] INFO - Updating user attributes.
[Intercom] INFO - Not updating user. Duplicate user attributes.
[our log] succeed to connect user to intercom (result from Intercom.loginUser)
[Intercom] Push Notifications Handler: AUTO
[Intercom] Push Notifications Handler: AUTO
[our log] Speech recognition authorization granted
[Intercom] Push Notifications Handler: AUTO
[Intercom] ERROR - Tried to transcribe audio but there was a network error - HTTP Error: 401 unauthorized
Voice transcription API error: serverError(IntercomSDKPrivate.APIErrorType.serverError(401))
Do you have any idea of our problem ?
Best regards
