The edx-platform is working against the site language preferred and set the prod-edx-language-preference
cookie automatically for the selected preferred site language regardless of the requested source.
The prod-edx-language-preference cookie is not being updated on mobile apps in the same session. The cookie value gets reset/updated after logout/login, but sometimes it doesn’t work and we have to reset the device to make it work.
On mobile we are supporting multiple languages and these language depends on device language. We want to set the prod-edx-language-preference cookie in webviews so that our whole app screen would sync with one selected language.
Initial Spike has been done. For now cookie has been stored and it is working as expected, i.e. after setting cookie, the the web views are being loading in expected format (language).
In iOS 11, the framework provides HttpCookieStore but for iOS below 11, I have to test on Simulator for iOS 10. After that it can be moved to Done.