Skip to main content
Solved

Get Anonymous Profile ID

  • August 28, 2024
  • 4 replies
  • 120 views

Forum|alt.badge.img+1

Hi there,

I am having trouble getting the Anonymous profile ID in the following context:

  • Mobile platform with Mobile SDK
  • Using Campaign with Push Notification
  • Anonymous profile for Guest user, it just have only information about “Mobile push notifications Subscription”
  • Using this profile ID for get their events (Received Push)

Could anyone please advise the way to get Anonymous profile ID or get exactly “Received Push" event of a profile?

Thanks!

Best answer by markpiana

@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. 

View original
Did this topic or the replies in the thread help you find an answer to your question?

4 replies

Kim Strauch
Klaviyo Employee
Forum|alt.badge.img+9
  • Klaviyo Employee
  • 91 replies
  • August 30, 2024

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! 
 


Forum|alt.badge.img+1
  • Author
  • Contributor III
  • 5 replies
  • August 30, 2024

 @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!

 


markpiana
Klaviyo Employee
Forum|alt.badge.img+4
  • Klaviyo Employee
  • 25 replies
  • Answer
  • September 3, 2024

@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. 


Forum|alt.badge.img+1
  • Author
  • Contributor III
  • 5 replies
  • September 4, 2024

@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