
If user accessing the different-2 pages from mobile and in one of the HttpURLConnection by using CookieManager Īnd for iOS(Swift) there are also a few options, one of them involves HTTPCookieStorage, for more details you can check this answer on SO. OkHttp by using CookieJar or an interceptor Not based on Sitecore Mobile SDK and Xamarin but created using IOSįor Android, cookie management can be handled with these HTTP clients: A mobile app will pass the analytics cookie with every request to the Layout Service endpoint.A native mobile application will send a contact identifier to the endpoint by using an HTTP client and with the response SC_ANALYTICS_GLOBAL_COOKIE cookie is returned.username/email address) and identifies the contact. Create an API endpoint that is aware of HttpContext and Sitecore, accepts a contact identifier (e.g.
SWIFT SHARE APP LINK HOW TO
One of the approaches for how to accomplish this in the context of native mobile applications: For more information and examples on how it can be done for native mobile apps, you can read this blog post.Īnd if it is an earlier version of Sitecore, then a trusted intermediary application have to be created that receives interaction data from mobile apps and submits it to xConnect.Ĭonsidering that cookie-based tracking is not available in the context of native mobile apps, the Layout Service will not know what contact is it to be able to apply contact-related personalization. Therefore, if you use Sitecore 9.1 or later, it is advantageous to use Sitecore Universal Tracker. Using xConnect for tracking/ submitting interaction data from native mobile apps to Sitecore might not be an ideal scenario, as xConnect can receive data only from trusted clients with the correct client certificates. Therefore, the Layout Service has to be used to retrieve personalized content. The Item Service provides a RESTful API to create and retrieve items, though it does not support personalization and tracking. XConnect can be utilized or XConnect with JSS can be utilized?Ĭonsidering the wide range of requirements, both the Item Service (Sitecore Service Client) and the Layout Service have to be used. , in this case Sitecore 9 item web service and If we wanted to provide data (get/set operations on content tree,Īnalytics, personalization, tracking data) from Sitecore 9 to native To add more to Artsem's answer and to answer the additional questions that were not answered.
