ios - Apple Watch Show Short or Long Look Notification for UILocalNotification -
i show short-look or long-look interfaces created apple watch app.
what works following:
the app background job , notifies user. happens uilocalnotification.
when iphone locked , watch around arm, watch vibrate , show simple notification, not long or short-look notification.
i saw got working push notifications -> apple watch: dynamic long not shown, when push opened notification center app not support push.
does know way present long or short-look notifications without server push stuff?
i send notification following code:
var localnotification = uilocalnotification() //---the message display alert--- localnotification.alertbody = "you have entered region monitoring" //---uses default sound--- localnotification.soundname = uilocalnotificationdefaultsoundname //---title button display--- localnotification.alertaction = "details" //---display notification--- uiapplication.sharedapplication().presentlocalnotificationnow(localnotification)
best regards,
simon
you have set 'category' property value matching 1 in watch app storyboard.
Comments
Post a Comment