KlaviyoRemoteMessage
Extension functions for RemoteMessage to provide convenient accessors to our data fields
Properties
Parse channel description or fallback on default
Parse channel ID or fallback on default
Parse channel importance or fallback on default
Parse channel name or fallback on default
Parse click action (activity or intent filter) Click action could be explicitly sent, or we should use ACTION_VIEW if a deep link is sent
Determine if the message is bearing key-value pairs
Determine if the message originated from Klaviyo from the tracking params
Determine if the message is a notification from Klaviyo (as opposed to a silent push)
Parse out the key-value pairs into a string:string map
Parse out notification count from payload (for app badging)
Parse out notification priority or fallback on default
Parse out notification tag, used as a de-duping mechanism