Ubiquitous networks comprise a diverse set of homogeneous or heterogeneous networks to perform ubiquitous computing operations. In the real-time application context, users can access data from any place and at any time by using mobile devices/nodes such as computer/laptop, mobile, tablet and so on. Nowadays, mobile computing paradigms have an impact on the spread of mobile computing devices, resulting in the transmission of data across ubiquitous networks. To avoid uncertainty, it is critical to maintain data consistency across all devices. This research work has proposed a context aware data synchronization using cognitive agents as a case study on shopping environments. The proposed data synchronization scheme detects network changes, resolves any potential conflicts, and updates various synchronizing devices with different device attributes. Cognitive agents are used to track the data across multiple devices. Context aware ubiquitous networks respond to customer requests based on their personal profiles, which often include individual preferences while considering the technological restrictions of the mobile device and the context of operating environment. The proposed work is compared with other existing methods in terms of data accuracy, data synchronization time, and computation and communication overhead.