iDev Mobile SDK 发布:一套代码驱动 iOS 和 Android 原生体验
iDev Mobile SDK Released: One Codebase Driving Native iOS and Android Experiences
| iDev PR | 2026-08-28T09:20:17
iDev Mobile SDK 正式发布,为移动应用开发者提供统一的后端服务接入层,内置用户认证、推送通知、数据同步和崩溃报告等核心模块。
iDev Mobile SDK is officially released, providing mobile app developers with a unified backend service access layer, with built-in core modules for user authentication, push notifications, data synchronization, and crash reporting.
产品愿景移动应用开发者在构建应用时,往往需要花费大量时间在后端服务对接上:用户登录注册、消息推送、数据缓存与同步、崩溃监控等功能虽然通用,但实现起来繁琐且容易出错。iDev Mobile SDK 的目标是将这些通用能力封装为开箱即用的 SDK,让开发者专注于业务逻辑本身。功能模块首版 iDev Mobile SDK 包含以下核心模块:统一认证(Auth):支持账号密码、短信验证码、微信/Apple 第三方登录,自动管理 Token 刷新和会话状态推送通知(Push):封装 APNs 和 FCM,提供统一的推送 API,支持定向推送、标签推送和静默推送数据同步(Sync):基于 CRDT 的离线优先数据同步引擎,支持断网环境下的数据读写,恢复网络后自动同步崩溃报告(Crash):自动捕获 iOS 和 Android 平台的崩溃和 ANR 异常,支持符号化还原和实时告警技术特性SDK 采用 Kotlin Multiplatform(KMP)技术构建,共享核心业务逻辑代码,同时为 iOS 和 Android 提供原生的 API 接口风格。SDK 体积控制在 2MB 以内,启动时增加的冷启动时间不超过 50 毫秒,对应用性能的影响微乎其微。接入指南iOS 开发者可以通过 CocoaPods 或 Swift Package Manager 集成,Android 开发者通过 Maven Central 引入依赖。SDK 提供了详细的接入文档和示例项目,完成基础功能接入通常只需要30分钟。所有模块支持按需引入,不使用的模块不会增加包体积。
Product VisionMobile app developers often spend significant time integrating backend services when building applications: user registration and login, push notifications, data caching and synchronization, crash monitoring -- these features are universal but tedious and error-prone to implement. iDev Mobile SDK aims to encapsulate these common capabilities into a ready-to-use SDK, allowing developers to focus on business logic itself.Feature ModulesThe first version of iDev Mobile SDK includes the following core modules:Unified Authentication (Auth): Supports username/password, SMS verification codes, WeChat/Apple third-party login, with automatic Token refresh and session state managementPush Notifications (Push): Wraps APNs and FCM, providing a unified push API supporting targeted push, tag-based push, and silent pushData Synchronization (Sync): An offline-first data sync engine based on CRDT, supporting data read/write in offline environments with automatic sync upon network recoveryCrash Reporting (Crash): Automatically captures crashes and ANR exceptions on both iOS and Android platforms, supporting symbolication and real-time alertingTechnical FeaturesThe SDK is built using Kotlin Multiplatform (KMP) technology, sharing core business logic code while providing native API interface styles for both iOS and Android. SDK size is kept under 2MB, with cold start time increase of no more than 50 milliseconds, having negligible impact on application performance.Integration GuideiOS developers can integrate via CocoaPods or Swift Package Manager, while Android developers import dependencies through Maven Central. The SDK provides detailed integration documentation and sample projects, with basic feature integration typically requiring only 30 minutes. All modules support on-demand inclusion -- unused modules do not increase package size.