apptentive-react-native
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
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:
- Create a React Native app and include Apptentive React Native SDK
- Add Person Custom Data with an integer value that takes in only 0s and 1s
- 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:
Expected:
- Open ended field to enter any integer
Note:
- Exact same app code works as expected on Android: