mirror of
https://github.com/status-im/react-native.git
synced 2025-01-10 17:45:59 +00:00
1dc5dca604
Summary: Including RCTPushNotificationManager is required for local notifications, which don't require a Push Notifications entitlement on your provisioning profile. However, if you don't have the entitlement, the app store warns you when you push an app build that contains `application:didRegisterForRemoteNotificationsWithDeviceToken:`, even if it isn't being called. This renames the methods so they have different names from the ones on UIApplication so the app store doesn't warn about them. Closes https://github.com/facebook/react-native/pull/4897 Reviewed By: spicyj Differential Revision: D2780533 Pulled By: nicklockwood fb-gh-sync-id: 1a688f1ebd3cc9f86ba340ce453fdbfb46949839
21 lines
681 B
Objective-C
21 lines
681 B
Objective-C
/**
|
|
* Copyright (c) 2015-present, Facebook, Inc.
|
|
* All rights reserved.
|
|
*
|
|
* This source code is licensed under the BSD-style license found in the
|
|
* LICENSE file in the root directory of this source tree. An additional grant
|
|
* of patent rights can be found in the PATENTS file in the same directory.
|
|
*/
|
|
|
|
#import <UIKit/UIKit.h>
|
|
|
|
#import "RCTBridgeModule.h"
|
|
|
|
@interface RCTPushNotificationManager : NSObject <RCTBridgeModule>
|
|
|
|
+ (void)didRegisterUserNotificationSettings:(UIUserNotificationSettings *)notificationSettings;
|
|
+ (void)didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken;
|
|
+ (void)didReceiveRemoteNotification:(NSDictionary *)notification;
|
|
|
|
@end
|