0
私のiPhoneアプリケーションでは、UILocalNotificationを作成します。 Apple WatchでUILocalNotificationを同期させる方法を知りたいです。これは、iPhoneに表示されたときに通知をウォッチに表示させることを意味します。UILocalNotificationをウォッチに同期する
それは(この通知は91 secondesに表示され、私は携帯電話に表示され、見たい)私のUILocalNotificationです:
UILocalNotification *verif_exterieur_notification = [[UILocalNotification alloc]init];
verif_exterieur_notification.fireDate = [NSDate dateWithTimeIntervalSinceNow:91];
verif_exterieur_notification.alertTitle = @"Vérifications extérieures:";
verif_exterieur_notification.alertBody = @"Assurez vous d'avoir bien vérifié(e) l'éxterieur de votre avion avant de vous installer !";
verif_exterieur_notification.timeZone = [NSTimeZone defaultTimeZone];
verif_exterieur_notification.soundName = UILocalNotificationDefaultSoundName;
[[UIApplication sharedApplication ]scheduleLocalNotification:verif_exterieur_notification];
OK UIlocalNOtificationがIphoneに表示されたときに静的通知インターフェイスを作成するにはどうすればよいですか?おかげで –
あなたのアプリに通知拡張ターゲットを追加する必要があります。 [このチュートリアル](https://code.tutsplus.com/tutorials/ios-10-creating-custom-notification-interfaces--cms-27251) –
通知拡張をご覧ください。ウォッチのために?私はチュートリアルを理解していません –