Cookies issue in web view

We're using webview in our iOS app to show the web page. The website contains cookies and they need to be Accepted/Declined by the users by clicking on Accept or Decline button, Which is handled by the website.

Apple asked us to either remove the cookies from web content or implement App Tracking Transparency.

We added App Tracking Transparency and now the user is asked to allow or deny the tracking permission once the user allows then we show the cookie prompt in the webview and if they deny the permission we don't show the cookie prompt.

To achieve this we've set one cookie when the user denies the permission - so that the cookie popup isn't shown.

But our app still got rejected, below is the message by the apple review team -

We noticed you collect data to track after the user selects "Ask App Not to Track" on the App Tracking Transparency permission request.

Specifically, we noticed your app accesses web content you own and collects cookies for tracking after the user asked you not to track them.

Next Steps

To resolve this issue, please revise your app so that you do not collect data for tracking purposes if the user does not give permission for tracking.

Resources

  • Tracking is linking data collected from your app with third-party data for advertising purposes or sharing the collected data with a data broker. Learn more about tracking.
  • See Frequently Asked Questions about the new requirements for apps that track users.

Any help will be appreciated. Thanks in advance.

Answered by mtgi in 704805022

Hi there,

Maybe this solution could help: https://developer.apple.com/forums/thread/681464

Accepted Answer

Hi there,

Maybe this solution could help: https://developer.apple.com/forums/thread/681464

Hi - did you end up finding a solution for this?

Hello amanpreet-motifworks,

Did you find a solution for this?

Cookies issue in web view
 
 
Q