Hey @Anh Nguyen T, can you share you a little bit more information about what you’re trying to do here?
1. Where are you trying to access the anonymous id of a profile? is this within the mobile sdk, or somewhere else? Can you share more details on why you’re trying to access this?
2. Where / why are you trying to access the “Received push” event for a profile?
If we understand more about your use case — what you’re trying to do and why — we can better answer your questions here!
@Kim Strauch
Thank you for your attention to my question!
1. Where are you trying to access the anonymous id of a profile? is this within the mobile sdk, or somewhere else? Can you share more details on why you’re trying to access this?
2. Where / why are you trying to access the “Received push” event for a profile?
One feature in my mobile app is Message List, which includes all Push Notification from Klaviyo through Campaigns and Flows.
I plan to get them via the "Received push" event
According to the Get events API, to get Events of a profile, the profileId needs to be provided, but I can't get it from anywhere (mobile sdk and APIs also).
Could you please advise the way to get profileId or anyway to make my Message List feature?
Thank you so much again!
@Anh Nguyen T I want to state that officially we do not currently support message list / push notification inbox functionality, but it is in our backlog to support in the future. While you can leverage Received Push events to create a message list for now, be aware that you should consider edge cases like a profile having multiple push tokens and, therefore, multiple received push events per message sent (i.e., one received push event per token).
If you would like to move forward with this approach, we recommend that you set an external ID for each profile and then use that external ID to pull Received Push events. Note that you should only use your private key from a server, so you should proxy these GET event calls from your app to your backend first.
@markpiana
Thank you so much for your information.
I have known about “multiple received push events per message sent”
I’m in Working around for getting Anonymous profileId:
- Create Segment with “If someone can receive mobile push marketing”
- Filter in this segment with push_token
- Then get the profile and take the profileId
However, it only solves part of the features that our app wants. I am still waiting for the update about Get campaign for Push Notification