Home / Companies / Ditto / Blog / April 2023

April 2023 Summaries

6 posts from Ditto

Filter
Month: Year:
Post Summaries Back to Blog
Bluetooth and Peer-to-Peer Wi-Fi permissions on mobile devices have undergone significant changes over the years, as neither iOS nor Android initially implemented effective systems, leading to privacy risks and user confusion. Apple's approach, which began with iOS 5 and evolved through subsequent updates, eventually introduced automatic runtime permission prompts, enhancing user privacy and control. Similarly, Android's journey started with upfront permissions at installation and evolved to more specific and context-sensitive permissions by Android 12 and 13, addressing privacy concerns related to location data. Both platforms have moved towards a more nuanced system of permissions that align with specific actions rather than general data types, benefiting developers and users by improving privacy controls and reducing complexity. Despite the progress, there remains potential for further improvements, such as more granular control over app permissions for communication features, as users increasingly demand enhanced privacy from their devices.
Apr 29, 2023 1,587 words in the original blog post.
This tutorial explains how to run a React web app locally within an iOS application using Vite and WKWebView, providing a method to operate entirely offline without remote server calls. It guides users through creating a React app with Vite, setting up an iOS app with SwiftUI, and integrating a WKWebView to display the web app's content. The process involves using a build script to bundle the web app's final artifacts and copy them into the iOS app's resource directory. The tutorial emphasizes the importance of specific WKWebView configurations, such as allowing file access from file URLs, to ensure proper functionality. By following these steps, users can achieve offline-first apps on iOS devices, leveraging their existing web app code without relying on cloud services.
Apr 23, 2023 1,652 words in the original blog post.
Ditto version 4 introduces a significant internal database upgrade with performance and design enhancements, primarily by replacing the current CRDT's RemoveWins merge behavior with an AddWins approach. This change aims to address the limitations of RemoveWins, where a remove operation permanently deletes documents, making it impossible to undo without observing all delete actions. In contrast, AddWins allows for undoing removals by enabling devices to upsert documents again, offering more flexibility and reliability in disconnected environments. While Ditto V4 is incompatible with earlier versions like V2, it can sync with V3, which serves as an intermediary to prepare for the transition. To fully leverage the new AddWins functionality, users must ensure that all devices are updated to V4 and enable the feature flag `disableSyncWithV3()`. This transition requires careful coordination, especially for multi-tenant customers, and Ditto emphasizes the importance of not skipping versions to avoid syncing issues.
Apr 17, 2023 1,696 words in the original blog post.
The text provides a detailed guide on converting HEX color strings to UIColor for UIKit and Color for SwiftUI in iOS development, highlighting the importance of color in design and the lack of built-in support for HEX conversion in iOS. It explains how to create extensions in XCode to facilitate this conversion, allowing developers to easily translate color data between applications using RGBA HEX strings. The guide offers code snippets for implementing these conversions in both UIKit and SwiftUI projects and emphasizes the utility of these methods in maintaining color consistency across different platforms. Additionally, it introduces the use of DittoSwift for handling HEX color strings within apps, providing code to parse and set colors in DittoDocumentPath and DittoMutableDocumentPath. The tutorial aims to assist developers in effectively managing color data in iOS apps, with a promise of future resources for JetPack Compose projects.
Apr 14, 2023 1,278 words in the original blog post.
Omnichannel retail strategies require a balance between technological flexibility and vendor support, especially for businesses lacking an internal software development team. Leaders in retail are encouraged to adopt a "flexibility first" mindset when evaluating platforms to ensure they can adapt to future changes without being locked into specific solutions. Vendor support, including thorough onboarding and customization options, is crucial for meeting unique business needs, but companies must be wary of the potential high costs and complexities involved in customization. Additionally, investing in skilled project managers and procurement professionals is essential to manage vendor relationships and ensure smooth integration of systems. The "Buy vs Build" decision is a pivotal point, with buying offering speed and ease of implementation, while building provides tailored solutions, albeit at a slower pace. Regardless of the approach, the overarching goal remains to create a seamless, unified customer experience that can adapt to the evolving retail landscape.
Apr 08, 2023 1,922 words in the original blog post.
Chick-fil-A has accelerated the modernization of its point-of-sale (POS) system by leveraging Ditto's cloud-optional, edge-based real-time database, completing the upgrade two years ahead of schedule. This new system enhances operational resilience by functioning independently of an internet connection, thus providing greater reliability and efficiency during outages. It integrates Ditto's edge sync technology, which ensures a continuous flow of real-time data across devices and to the cloud when available, optimizing the use of POS devices such as iPads and kitchen display systems. This approach allows for seamless data synchronization and transport switching via Ditto's versatile "Rainbow Connection" across multiple networks, simplifying application development by reducing the need for complex cloud-based microservices. By adopting this cutting-edge technology, Chick-fil-A has not only improved service delivery and operational control for its restaurant operators but also maintained its focus on delivering an exceptional user experience, reinforcing its commitment to customer care.
Apr 01, 2023 769 words in the original blog post.