-
Notifications
You must be signed in to change notification settings - Fork 200
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Analytics - Data mismatch between CustomProperties and Pinpoint Attributes #2862
Comments
This is supported in the new So this is perfectly valid: let userProfile = BasicUserProfile(
name: "Name",
customProperties: [
"colours": ["red", "green", "blue"]
]
) We just need to update Analytics's This however would be a breaking change, so what we could do instead is to define a new API and deprecate the old one: public protocol AnalyticsCategoryBehavior {
func identifyUser(userId: String, userProfile: UserProfile?)
@available(*, deprecated, message: "AnalyticsUserProfile is deprecated, please use UserProfile instead")
func identifyUser(userId: String, userProfile: AnalyticsUserProfile?)
} |
@abdallahshaban557 regarding your proposal, one issue I see is that We aim to keep the Categories and their APIs as generic as possible, and the idea behind having just For example, the existing Pinpoint plugins take care of mapping numeric properties to metrics, and boolean, string and array of strings to attributes. |
Understood - the request was mainly around making sure the attributes can accept an array of values as you've mentioned in your first response here. For the concerns you have on the |
This has been identified as a feature request. If this feature is important to you, we strongly encourage you to give a 👍 reaction on the request. This helps us prioritize new features most important to you. Thank you! |
Tracked in #1416 |
|
Is your feature request related to a problem? Please describe.
We need to allow the update of user attributes to accept an array of values, similar to what is mentioned in this Github issue aws-amplify/amplify-flutter#2850
Describe the solution you'd like
Proposal:
Allow the Pinpoint Endpoint attributes field to be set as a Map<String, List> in UserProfile by:
Describe alternatives you've considered
N/A
Is the feature request related to any of the existing Amplify categories?
Analytics
Additional context
No response
The text was updated successfully, but these errors were encountered: