May 2024 Summaries
5 posts from Ionic
Filter
Month:
Year:
Post Summaries
Back to Blog
Masahiko Sakakibara, a recognized Ionic Developer Expert, addresses the challenge of optimizing bundle size and performance in Angular when using Ionicons by introducing the ionic-angular-collect-icons package. This tool automates the process of managing icons, which traditionally involves the manual and repetitive task of using addIcons across multiple components. By minimizing bundle size, the package enhances app speed and developer experience. The process involves installing the package, updating npm scripts, and utilizing a CLI that scans templates for ion-icon elements, collects used icons, and generates a file for efficient icon management. This approach balances development convenience with production efficiency by ensuring only necessary icons are loaded, ultimately improving app performance.
May 22, 2024
843 words in the original blog post.
Ionic and OutSystems have collaborated to enhance the Capacitor ecosystem, introducing their first shared plugin, the Capacitor Barcode Scanner Plugin, which is now a core supported plugin. This plugin provides a simple interface for scanning various barcodes and QR codes on both Android and iOS devices, requiring no additional maintenance due to its reliance on native libraries. For Android, developers must update the minimum target SDK to 26 and modify the build.gradle file to include the OutSystems repository, while for iOS, they need to add the NSCameraUsageDescription key in the Info.plist file. This initiative is part of a broader effort to integrate and expand plugin ecosystems, with more plugins expected to be introduced soon, facilitating the development of robust applications with Capacitor.
May 16, 2024
547 words in the original blog post.
The Stencil team has introduced support for Playwright, an automated end-to-end testing framework developed by Microsoft, to enhance the testing of Stencil components. Playwright runs on all modern browsers and operating systems, utilizing the DevTools protocol to deliver reliable tests. The Stencil Playwright adapter facilitates seamless integration, allowing developers to write tests using Playwright's documented APIs while providing additional support for web component hydration. Key testing patterns include using the page.goto() method for loading predefined HTML templates, page.setContent() for defining HTML on a test-by-test basis, and page.waitForChanges() for managing component rehydration. The guide illustrates how to set up and execute tests, emphasizing the simplicity and effectiveness of these patterns for those new to Playwright.
May 09, 2024
719 words in the original blog post.
Microsoft has announced that it will retire its App Center product by March 2025, a move that might not surprise current users given the earlier discontinuation of support for Cordova. This shutdown requires developers to handle mobile app build and release processes independently, which can be a complex task, particularly with the need for updates following new OS releases. Ionic's Appflow, a mobile CI/CD service, presents itself as a viable alternative, offering native binary build processes and support for Cordova, Capacitor, React Native, and native iOS/Android apps, along with features like real-time remote app updates and direct app store publishing. Ionic, a leader in cross-platform app development, emphasizes its web-first approach, leveraging HTML, CSS, and JavaScript to support a wide range of applications, including those for enterprises.
May 07, 2024
586 words in the original blog post.
Ionic 8.1 introduces several accessibility improvements and new features, enhancing user experience for those utilizing screen readers and keyboard navigation. The update includes an improved interface for selecting items in the Datetime and Picker components, allowing swipes between columns and enabling Page Up and Page Down key functions for easier navigation. An experimental feature, focusManagerPriority, offers better navigation focus management for single-page applications, ensuring screen readers focus on the correct content. Developers can now control focus trapping in Modals and Popovers to enhance compatibility with third-party dialogs, and configure the DOM placement of fixed slots to prioritize focus on overlay components. Additional customizations include the ability to modify the clear icon in the Input component and pass role information with overlays in Datetime. The release highlights community contributions and encourages users to update to Ionic 8.1 for these enhancements.
May 02, 2024
835 words in the original blog post.