PHP 7.4.33
Preview: RCTPushNotificationManager.h Size: 2.05 KB
/var/www/uibuilder.cmshelp.dk/httpdocs/node_modules/react-native/Libraries/PushNotificationIOS/RCTPushNotificationManager.h
/*
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */

#import <React/RCTEventEmitter.h>

extern NSString *const RCTRemoteNotificationReceived;

@interface RCTPushNotificationManager : RCTEventEmitter

typedef void (^RCTRemoteNotificationCallback)(UIBackgroundFetchResult result);

+ (void)didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken;
+ (void)didFailToRegisterForRemoteNotificationsWithError:(NSError *)error;
/**
 * Triggers remoteNotificationReceived or localNotificationReceived events.
 *
 * Call this method from UNUserNotificationCenterDelegate's
 * `userNotificationCenter:didReceiveNotificationResponse:withCompletionHandler:` in order to process a user tap on a
 * notification.
 *
 * To process notifications received while the app is in the foreground, call this method from
 * `userNotificationCenter:willPresentNotification:withCompletionHandler:`. Use the completion handler to determine if
 * the push notification should be shown; to match prior behavior which does not show foreground notifications, use
 * UNNotificationPresentationOptionNone.
 *
 * If you need to determine if the notification is remote, check that notification.request.trigger
 * is an instance of UNPushNotificationTrigger.
 */
+ (void)didReceiveNotification:(UNNotification *)notification;
/**
 * Call this from your app delegate's `application:didReceiveRemoteNotification:fetchCompletionHandler:`. If you
 * implement both that method and `userNotificationCenter:didReceiveNotificationResponse:withCompletionHandler:`, only
 * the latter will be called.
 */
+ (void)didReceiveRemoteNotification:(NSDictionary *)notification
              fetchCompletionHandler:(RCTRemoteNotificationCallback)completionHandler;

/**
 * Call this in `userNotificationCenter:didReceiveNotificationResponse:withCompletionHandler:`
 * to get the correct value from .getInitialNotification in JS.
 */
+ (void)setInitialNotification:(UNNotification *)notification;

@end

Directory Contents

Dirs: 0 × Files: 8
Name Size Perms Modified Actions
472 B lrw-r--r-- 2025-03-28 11:04:42
Edit Download
9.28 KB lrw-r--r-- 2025-03-28 11:04:43
Edit Download
16.91 KB lrw-r--r-- 2025-03-28 11:04:42
Edit Download
2.05 KB lrw-r--r-- 2025-03-28 11:04:41
Edit Download
23.80 KB lrw-r--r-- 2025-03-28 11:04:43
Edit Download
928 B lrw-r--r-- 2025-03-28 11:04:41
Edit Download
900 B lrw-r--r-- 2025-03-28 11:04:43
Edit Download
2.41 KB lrw-r--r-- 2025-03-28 11:04:43
Edit Download
If ZipArchive is unavailable, a .tar will be created (no compression).