phonegap を使用して IOS アプリケーションを開発しており、毎週金曜日と指定された時間に繰り返されるローカル通知を設定する必要があります。
また、ユーザーがローカル通知を受信するかどうかを決定する必要があります。
phonegap を使用して IOS アプリケーションを開発しており、毎週金曜日と指定された時間に繰り返されるローカル通知を設定する必要があります。
また、ユーザーがローカル通知を受信するかどうかを決定する必要があります。
非常に役立つトピックに関する次の記事を読むことをお勧めします
http://useyourloaf.com/blog/2010/7/31/adding-local-notifications-with-ios-4.html
- (void)scheduleNotification {
[[UIApplication sharedApplication] cancelAllLocalNotifications];
UILocalNotification *notif = [[UILocalNotification alloc] init];
notif.fireDate = [datePicker date];
notif.timeZone = [NSTimeZone defaultTimeZone];
notif.alertBody = @"Body";
notif.alertAction = @"AlertButtonCaption";
notif.soundName = UILocalNotificationDefaultSoundName;
notif.applicationIconBadgeNumber = 1;
[[UIApplication sharedApplication] scheduleLocalNotification:notif];
[notif release];
}
}
これは、それがどのように機能するかの基本的な概要にすぎませんが、これから開始して、通知をスケジュールできるはずです.