Closed tonespy closed 1 year ago
@tonespy Thanks for reporting the bug. Is this while using the forceSurvey
flag?
@tonespy Thanks for reporting the bug. Is this while using the
forceSurvey
flag?
Yeah. Correct.
@tonespy we have found the cause of the issue. After we migrated project to support multiple survey campaigns, the forceSurvey
flag triggers the survey, but fails to store the response.
We will fix this issue in next release of iOS SDK.
Meanwhile, the workaround for testing is to use this targeting, so that we show the survey every time:
Hmm. Okay. How long do you think the new release will be available?
I got a feedback from the online chat system that, adding a campaign id fixes the issue. Yeah, it did. But, it means users are restricted to a single campaign. And, the project is live with that fix 😁
@tonespy How you pass the campaign in your code? Could you please send me a snippet here?
The reported issue is present only when forceSurvey
is active. I assume you're not using forceSurvey
in production, so no changes should be necessary there.
@tonespy How you pass the campaign in your code? Could you please send me a snippet here?
The reported issue is present only when
forceSurvey
is active. I assume you're not usingforceSurvey
in production, so no changes should be necessary there.
let traitsDictionary = [
"name": name,
"email": email,
"campaign": campainInfo,
"createdAt": Date().getISODateString()
]
SatisMeter.sharedInstance()?.identifyUser(withUserId: "\(user_id)", writeKey: write_key, andTraitsDictionary: traitsDictionary)
SatisMeter.sharedInstance()?.forceSurvey(true)
Fixed some time ago.
@tonespy May I ask you to share the model of campainInfo
? @jsedlacek may I ask you for an assistance how should we specify the campaign on mobile? Getting a 400 when there's no campaign property, but the SDK doesn't set it, when I intercept the request and add a property manually everything works and I receive a 204.
@tonespy May I ask you to share the model of
campainInfo
?
Lol. 4yrs later 🤣🤣
I get a 400 bad request anytime I fill in a survey. See below for sample response in the log.