dotcom-rendering icon indicating copy to clipboard operation
dotcom-rendering copied to clipboard

DCR for Apps - Passing consent between the native layer and webview

Open rhiannareechaye opened this issue 2 years ago • 7 comments

1: Work out how to pass native consent to the web-rendered articles (Engineering) We need to a mechanism for sharing consent between the native app and the web layer rendering articles, The email describes how Sourcepoint said we could avoid double-consent-banner, and part of the consent spike should be testing this. For this phase of the sprint, we should simply follow Sourcepoint’s instructions, asking ourselves: does that work as expected to make consent available in the app? If the answer is yes. Great. If the answer is no, then there might be more than 2 sprints of work to resolve it. We probably should ask SP if any other of their users have done this before, reliably.

We should aim for parity with the web's ConsentState data model. This will allow any web code to handle consent regardless of whether that consent came from native or web: https://github.com/guardian/consent-management-platform/blob/main/src/types/index.ts#L29

There are other things in DCR that need consent other than ads (and video). From https://github.com/guardian/consent-management-platform/blob/main/src/vendors.ts: acast, braze, comscore, google-analytics, google-tag-manager, ipsos, lotame, nielsen, ophan (do we check consent for ophan?), remarketing, sentry, twitter are all non-advertising vendors, and not youtube-player

rhiannareechaye avatar Jul 26 '23 11:07 rhiannareechaye

Olli from TNC is doing the work

VDuczekW avatar Jul 31 '23 09:07 VDuczekW

As discussed earlier this is possible using the app native & web Sourcepoint SDKs. To test that this works, I plan to create a demo app that only displays a web page. This will use our current SP account & details to consent the user then pass that consent to the web page. It might be possible to host the web page locally or it might need to hosted on a domain somewhere. My plan would be for the web page to display the consent data on the page for visual confirmation that it is working as expected.

I will need assistance in building the web page, and potentially figuring out where to host it depending on if local doesn’t work.

falloutfox avatar Aug 01 '23 09:08 falloutfox

Olli and Sue are looking at this to do - and will reach out to us for help

VDuczekW avatar Aug 02 '23 09:08 VDuczekW

Demo app is built and Sourcepoint is setup for this to work. Tomorrow Akinsola and I will pair on getting the consent into web and configured correctly

falloutfox avatar Aug 08 '23 14:08 falloutfox

not blocked but adding to blocked column for WebX view

VDuczekW avatar Aug 09 '23 09:08 VDuczekW

Screenshot 2023-08-09 at 12 08 48 Trying to host locally is a bust, looks like this will have to move to a guardian hosted site. Is this possible, safe & achievable? @arelra @JamieB-gu ?

falloutfox avatar Aug 09 '23 11:08 falloutfox

This has been achieved! Will discuss later how to document the process and what's needed from both teams.

falloutfox avatar Aug 11 '23 09:08 falloutfox

Closing this, as we believe it has been done. @JamieB-gu Please re-open if there is anything we have missed related to decommissioning AR.

petternitter avatar May 21 '25 13:05 petternitter