application:didReceiveRemoteNotification:fetchCompletionHandler:], but you still need to add "remote-notification"

Getting this message in Xcode: You’ve implemented -[ application:didReceiveRemoteNotification:fetchCompletionHandler:], but you still need to add “remote-notification” to the list of your supported UIBackgroundModes in your Info.plist. How to solve this without adding what it says? I haven’t implemented what it says so I shouldn’t have to add it.

I found the solution:

Change in xcodeproject/Classes/Preprocessor.h:

#define UNITY_USES_REMOTE_NOTIFICATIONS 1

to

#define UNITY_USES_REMOTE_NOTIFICATIONS 0