|
@@ -149,21 +149,6 @@ RCT_EXPORT_METHOD(clearNotification){
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-RCT_EXPORT_METHOD(addSunPushzzz:(id)array){
|
|
|
|
|
- dispatch_async(dispatch_get_main_queue(), ^{
|
|
|
|
|
- UNUserNotificationCenter *center = [UNUserNotificationCenter currentNotificationCenter];
|
|
|
|
|
- // [center removeAllPendingNotificationRequests];
|
|
|
|
|
- [center getPendingNotificationRequestsWithCompletionHandler:^(NSArray<UNNotificationRequest *> * _Nonnull requests) {
|
|
|
|
|
- NSLog(@"%d",requests.count);
|
|
|
|
|
- }];
|
|
|
|
|
- // [center removeAllPendingNotificationRequests];
|
|
|
|
|
- [center removePendingNotificationRequestsWithIdentifiers:@[
|
|
|
|
|
- @"REMINDER_SUN_RISE",
|
|
|
|
|
- @"REMINDER_SUN_SET",
|
|
|
|
|
- @"REMINDER_SUN_SOLAR_NOON"
|
|
|
|
|
- ]];
|
|
|
|
|
- });
|
|
|
|
|
-}
|
|
|
|
|
|
|
|
|
|
RCT_EXPORT_METHOD(addSunPush:(id)array){
|
|
RCT_EXPORT_METHOD(addSunPush:(id)array){
|
|
|
dispatch_async(dispatch_get_main_queue(), ^{
|
|
dispatch_async(dispatch_get_main_queue(), ^{
|