[solved] App Store warns about push notification


#1

When we publish to the App Store we always get a warning about: “Missing Push Notification Entitlement”.

We don’t use any push notification in our application, so we don’t know why Apple thinks we do.
How do we find what triggers this warning and how do we remove it?


#2

I have also seen this before. I believe it’s due to an API or plugin your app may be using contains the some optional access to push services?
You may try some suggestions here:
https://forums.developer.apple.com/thread/64417

And here:
http://stackoverflow.com/questions/39594073/post-ios10-xcode-8-0-missing-push-notification-entitlement-error-after-build

Just a thought.


#3

You were right, it was a plugin.

We’re using Google Analytics via nativescript-google-analytics.
On iOS it depends on the pod Google/Analytics, which depends on FirebaseAnalytics and FirebaseInstanceID.
It looks like Firebase register the function UIApplicationDelegate method application:didRegisterForRemoteNotificationsWithDeviceToken which triggers that warning.
Read here: https://forums.developer.apple.com/thread/15011#43856

I found the pod dep hierarchy in the file platforms/ios/Pods/Manifest.lock