react-native-push-notification / ios

React Native Push Notification API for iOS.
MIT License
740 stars 284 forks source link

Issue when Archive #243

Open Akshay9457 opened 3 years ago

Akshay9457 commented 3 years ago

the error will be shown when i archive project ,but on debug mode it works without any problem

I imported

import <UserNotifications/UserNotifications.h>

import

Also I have added #IF Debug Debug line to AppDelegate.m also imported

IF Debug

import <UserNotifications/UNUserNotificationCenter.h>

and i added UNUserNotificationCenterDelegate to protocols in AppDelegete.h ![Screenshot 2020-11-26 at 12 24 26 PM](https://user-images.githubusercontent.com Screenshot 2020-11-26 at 12 25 10 PM /75062604/100317414-5596e980-2fe2-11eb-8574-49a3f9000351.png)

tranthientrung commented 3 years ago

same issue

tranthientrung commented 3 years ago

Hey, I just resolved with this

import <UserNotifications/UserNotifications.h>

import

ifdef FB_SONARKIT_ENABLED //import above this line

worldlee78 commented 3 years ago

Hey, I just resolved with this

import <UserNotifications/UserNotifications.h>

import

ifdef FB_SONARKIT_ENABLED //import above this line

This actually worked to solve my problem as well. If anyone finds that the headers placed after the #ifdef are not resolving, moving them above that line fixes that problem.