ios - Apple watch notification mirroring -


i'm trying create notification action on apple watch. documentation not saying native , should made.

currently i'm creating uilocalnotification on iphone. i'm wondering action button mirrored on apple watch.

the code i'm using create notification on iphone is:

    let incrementaction = uimutableusernotificationaction()     incrementaction.identifier = "open_action"     incrementaction.title = "open"     incrementaction.activationmode = uiusernotificationactivationmode.background     incrementaction.authenticationrequired = false     incrementaction.destructive = false      let countercategory = uimutableusernotificationcategory()     countercategory.identifier = "slagboom_category"      countercategory.setactions([incrementaction],     forcontext: uiusernotificationactioncontext.default)      countercategory.setactions([incrementaction],     forcontext: uiusernotificationactioncontext.minimal)      let types = uiusernotificationtype.alert     let settings = uiusernotificationsettings(fortypes: types, categories: nsset(object: countercategory) as? set<uiusernotificationcategory>)     uiapplication.sharedapplication().registerusernotificationsettings(settings)      let notification:uilocalnotification = uilocalnotification()     notification.alertbody = message     notification.category = "slagboom_category"     uiapplication.sharedapplication().schedulelocalnotification(notification) 

am supposed make sure button work on apple watch? or need create watchkit app notification?

you default notifications free users option dismiss it.

if want custom want create own watch target , build out different notification views in watch targets storyboard

here's page on apple's watch programming kit explains different custom notifications can make


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -