当父iOS应用仍在前台时,有没有办法在手表上接收本地通知?例如,按下手机上的按钮并在手表上收到通知(手表处于非活动状态时)。
这是 NOT 正常工作(在iOS端):
let localNotification:UILocalNotification = UILocalNotification()
localNotification.alertBody = "Local notifications are working"
localNotification.soundName = UILocalNotificationDefaultSoundName
UIApplication.sharedApplication().presentLocalNotificationNow(localNotification)