Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS: Person Custom Data integer values that consist mainly of 0s and 1s are being ingested and reported as booleans #251

Open
stuartgeocaching opened this issue Apr 23, 2024 · 0 comments

Comments

@stuartgeocaching
Copy link

stuartgeocaching commented Apr 23, 2024

if let value_number = value as? NSNumber, CFGetTypeID(value_number) == CFBooleanGetTypeID() {
Apptentive.shared.personCustomData[key] = value_number as? Bool
}

Only on iOS, Person Custom Data integer values that consist mainly of 0s and 1s are being ingested and reported as booleans via the Apptentive dashboard

Repro steps:

  1. Create a React Native app and include Apptentive React Native SDK
  2. Add Person Custom Data with an integer value that takes in only 0s and 1s
  3. Create a survey in Apptentive dashboard that targets that new Person Custom Data

Observe:
Dropdown list of possible values is "True" or "False" and not an open integer field:
Screenshot 2024-04-23 at 12 06 40 PM

Expected:

  • Open ended field to enter any integer

Note:

  • Exact same app code works as expected on Android:
Screenshot 2024-04-23 at 11 31 58 PM
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant