How to pass string value to initiateOnDeviceConversionMeasurementWithHashedPhoneNumber? #8764
jerinjohnk
started this conversation in
General
Replies: 1 comment 1 reply
-
|
I looked into this pretty deeply and I haven't figured it out yet either! I wonder if the only users so far have been with email addresses, because I'm not sure how the phone part works, or if it ever worked. This needs some more investigation - sorry I didn't come to an answer quickly, that would have been more satisfying. I'm open to anyone else probing more deeply if anyone gets a chance, not sure when I'll get a chance to get back to it |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
initiateOnDeviceConversionMeasurementWithHashedPhoneNumber function takes a string value as input.
For example
Now whenever I try either
toString()or aBase64encoded string, as soon asBreakpoint hit; the byte length is around 44.
[FIRAnalytics initiateOnDeviceConversionMeasurementWithHashedPhoneNumber:phoneNumber];After nextline's execution, it starts throwing error
12.4.0 - [FirebaseAnalytics][I-ACS025057] Hashed phone number should be 32 bytes (256 bits)Till creation of hasWordArray is fine according to the documentation, but I am at a loss for how to convert this to the expected string format acceptable by the library.
Firebase Version
Beta Was this translation helpful? Give feedback.
All reactions