SRGSSR / pillarbox-documentation

Technical cross-platform documentation for Pillarbox
https://www.pillarbox.ch/
MIT License
3 stars 0 forks source link

User consent support in Letterbox / Pillarbox #46

Closed defagos closed 1 year ago

defagos commented 1 year ago

As a team member I need to better understand app needs regarding the new user consent support. As an app developer integrating SRG mobile libraries I need to be sure that my needs can be covered.

Acceptance criteria

Tasks

defagos commented 1 year ago

Play SRG needs

SRF needs

Pillarbox team questions

Hints

defagos commented 1 year ago

API proposal: Use the strategy pattern so that each constructed event gets the most recent consent list just before sending the event. IMHO this is better than having a property on the singleton Analytics instance since this avoids nasty dependencies, most notably when the SDK starts (depending on whether the consent information has been set before or after the result would be different).

On Apple platforms this could either be implemented with a delegate (likely a bit too much here) or a closure.

defagos commented 1 year ago

Tasks available for Apple platforms:

All done.