I would like to set a custom attribute with a string I get from UserDefaults().
This will NOT set the custom attribute:
let cam = UserDefaults.standard.string(forKey: "cam")!
Purchases.shared.attribution.setAttributes(("cam": cam])
This will set the custom attribute:
Purchases.shared.attribution.setAttributes(s"cam": "abc"])
let cam = "abc"
Purchases.shared.attribution.setAttributes(s"cam": cam])
let cam = UserDefaults.standard.string(forKey: "cam")!
Purchases.shared.attribution.setAttributes(s"cam": "abc"])
Purchases.shared.attribution.setAttributes(s"cam": cam])
UserDefaults combined with setting the attribute through a variable will not work, except if the attribute is previously set using a literal string (last example).
What do I miss here?
Is it a bug?
Is it Swift or RC related?