【wwdc2020】 AppClip学习笔记

粗糙记录,有时间再汉化细写

Explore app clips

General

  1. setup URL By appConnect . 'Configer and link your apps'
    2.app should been live at appstore
    3.apple-clip Code
    4.NFC + visual Code
    5.need an corresponding application (submit together and download separately
    6.include only what is needed (be as small as possiable, in 10M)
    7.focuses one things at a time
    6.can called by NSUsserActivity

Xcode
1.create Target and auto set bundleId -> (boundleid ).Clip
2.add dependency
3.add share Assets File
4.share the needed code with Target
5.add new Compiler-Flag for ignore some codes when compile App Clip
6.run!

More
1.UIKit lifecycle
2.NSUserActivity to setup after (remember the web page URL on activity, just like Universal Links)
3.all iOS SDK work in Clips (easy share code between App and Clip)
4.sensitive user data is limited (check access to data before request it) (Such as HealthKit data)

  1. without isAppClip API
    6.location comfirmation API For prompting access
    7.local data will be deleted after a period of inactivity (no launched for several days)
    8.custom URL schemes/document types/universal Link are unavailabe ( maybe you should setup the URL by AppConnect)
    9.treat more like a temporary cache
    10.could share the Group Container with corresponding App (data will still in shareGroupContainer after Clip has been deleted)
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。