apptentive-react-native icon indicating copy to clipboard operation
apptentive-react-native copied to clipboard

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

Open stuartgeocaching opened this issue 2 years ago • 0 comments

https://github.com/apptentive/apptentive-react-native/blob/0df394dfc32e04b62df56b905a4ebe924ae34de8/ios/ApptentiveModule.swift#L97-L99

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

stuartgeocaching avatar Apr 23 '24 19:04 stuartgeocaching