uilocalnotification - My Apple Watch never receives local notification send by the hosting iOS app -


i intend use code below send notification hosing ios app apple watch app

    var localnotification = uilocalnotification()     localnotification.firedate = nsdate()     localnotification.alertbody = ""     localnotification.alertaction = ""     localnotification.category = "gamestart"     localnotification.userinfo = payload.todictionary() [nsobject : anyobject] 

uiapplication.sharedapplication().schedulelocalnotification(localnotification)

according https://developer.apple.com/library/prerelease/ios/documentation/general/conceptual/watchkitprogrammingguide/basicsupport.html, watch app should receive notification under circumstances, tried - lock screen - put ios app background

but watch app never receive notifications ios app.

i've managed receive uilocalnotification on watch running watchos2. make sure option 'mirror iphone alerts from' turned on app (it's setting inside watch(mywatch) app on iphone), iphone app not running, iphone asleep , locked , watch on wrist.


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

jquery - javascript onscroll fade same class but with different div -