iOS16 小记(1)

422 阅读1分钟

一、WidgetKit

INTRO:适用于SwiftUI开发小组件功能.
iOS14.0+ Swift
APIDOC: https://developer.apple.com/documentation/widgetkit/

二、MapKit

INTRO:MapKit相较于三方SDK提供了更加丰富的API,导航等功能在多版本更新后更加好用.
iOS3.0+
APIDOC: https://developer.apple.com/documentation/mapkit/

三、In-app purchase

StoreKit 2

INTRO:在经历新迭代后的StroeKit提供了更新便捷的购买体验,同时丰富了开发者更加灵活调用. APIDOC: https://developer.apple.com/documentation/storekit

  • AppTransaction API 安全验证购买信息,检查购买时间,确认客户付费与非付费状态切换确认.
    iOS16+
  • StoreKit Message API 控制当提示信息sheets出现时状态与时机,以友好的不打断用户操作。
    iOS16+
  • SwiftUI APIs 关于优惠信息与store评论
    iOS16+
  • New properties 新属性,代替如原有的environment、recentSubscriptionStartDate等旧属性。
    iOS15+

App Store Server Notifications V2

商店服务器通知V2版本
Tip
Version 2 notifications cover more events in the in-app purchase life cycle, including subscription expirations, offer redemptions, and more. Version 2 notifications also support a TEST notification.
2.0版本带来了更多的事件回调在app购买的生命周期内,这相当于实时更新的操作流程。并且包含测试类型和沙盒购买类型的验证。

App Store Server API

  1. Request test notifications 获取测试通知API
  2. Notification history. 获取通知历史V2基础上
  3. In-app purchase history. 获取整个交易过程中历史,支持多条件查询.<调单利器!>

Benchmarks in App Analytics

应用分析,竞品分析比较,感觉有打广告的嫌疑<毕竟现在已经有广告了>