Hi All,
Could someone please help to figure out, why I could not set the named user identifier.
What happened:
- I could not set the named user identifier according to the documentation: UAirship.namedUser().identifier = "namedUserID".
The identifier always returns `nil` when trying to retrieve it at a later time (or even right after setting it). I did a test by setting
UAirship.namedUser().identifier = "123456"
and immediately after that print it out
print("Named user identifier:", UAirship.namedUser().identifier)
It always returns nil.
What have already been done:
- `Allow named users to be set from devices` is enabled from the Console in the `APIs & Integration settings`
- UAConfig.default().isDataCollectionOptInEnabled = true
- UAirship.shared().isDataCollectionEnabled = true
Any suggestion will be highly appreciated.
Thanks.
Comments
4 comments