We are experiencing survey initialization issues with Formbricks Cloud.
iOS:
SDK 2.0.0: Issue still persists and surveys are not displayed
Impact:
Formbricks initialization fails on iOS.
Surveys are not shown to users.
Faced same issue in Android also by upgrading the issue was resolved
Android:
SDK 1.2.0: Initialization fails with:
"Field 'projectId' is required for type with serial name 'com.formbricks.android.model.environment.LanguageDetail', but it was missing"
SDK 2.0.0: Initialization succeeds
Additional details:
The issue started recently without changes to our Formbricks configuration from the mobile team.
We are using Formbricks Cloud (not self-hosted).
The same Environment ID is used across Android and iOS.
Could you please verify whether there is an issue with the Cloud environment configuration, survey language configuration, or API response associated with our environment?
Part of Response from Formbrick for the language:
Response:
"languages": [
{
"default": false,
"enabled": true,
"language": {
"id": "XXXXX",
"code": "fr",
"alias": "",
"createdAt": "2024-11-04T15:03:01.247Z",
"updatedAt": "2026-02-09T11:30:28.753Z",
"workspaceId": "YYYYY"
}
}
],
Model:
struct LanguageDetail: Codable {
let id: String
let code: String
let alias: String?
let projectId: String
}
projectId is missing as part of the language
Error:
DecodingError.keyNotFound: Key 'projectId' not found in keyed decoding container. Path: data.data.surveys[0].languages[0].language. Debug description: No value associated with key CodingKeys(stringValue: "projectId", intValue: nil) ("projectId").
We are experiencing survey initialization issues with Formbricks Cloud.
iOS:
SDK 2.0.0: Issue still persists and surveys are not displayed
Impact:
Formbricks initialization fails on iOS.
Surveys are not shown to users.
Faced same issue in Android also by upgrading the issue was resolved
Android:
SDK 1.2.0: Initialization fails with:
"Field 'projectId' is required for type with serial name 'com.formbricks.android.model.environment.LanguageDetail', but it was missing"
SDK 2.0.0: Initialization succeeds
Additional details:
The issue started recently without changes to our Formbricks configuration from the mobile team.
We are using Formbricks Cloud (not self-hosted).
The same Environment ID is used across Android and iOS.
Could you please verify whether there is an issue with the Cloud environment configuration, survey language configuration, or API response associated with our environment?
Part of Response from Formbrick for the language:
Response:
"languages": [
Model:
struct LanguageDetail: Codable {
let id: String
let code: String
let alias: String?
let projectId: String
}
projectId is missing as part of the language
Error:
DecodingError.keyNotFound: Key 'projectId' not found in keyed decoding container. Path: data.data.surveys[0].languages[0].language. Debug description: No value associated with key CodingKeys(stringValue: "projectId", intValue: nil) ("projectId").