flurry / react-native-flurry-sdk

React Native Flurry SDK
Apache License 2.0
45 stars 13 forks source link

ITMS-90078: Missing Push Notification Entitlement - Your app appears to register with the Apple Push Notification service, but the app signature's entitlements do not include the "aps-environment" entitlement. #9

Closed markymc closed 5 years ago

markymc commented 5 years ago

I just added this SDK to my existing RN project and put up a TestFlight build. I then received an email from Apple saying:

ITMS-90078: Missing Push Notification Entitlement - Your app appears to register with the Apple Push Notification service, but the app signature's entitlements do not include the "aps-environment" entitlement.

However, I don't want to use push notifications at the moment. Is there some way to avoid this?

xnth97 commented 5 years ago

Hi @markymc ,

Thank you for using Flurry! Could you please check the following:

Please let me know if the problem still occurs. Thank you!

markymc commented 5 years ago

@xnth97 Thanks for your quick reply.

Did you enable "Push Notifications" in Xcode's Capabilities tab? Did you enable "Remote Notifications" in Background Modes?

No I didn't. I just double checked and they're both disabled.

Do you have .withMessaging(true) when initializing Flurry.Builder?

No, it's:

  new Flurry.Builder()
    .withCrashReporting(true)
    .withLogEnabled(true)
    .withLogLevel(Flurry.LogLevel.DEBUG)
    .build(FLURRY_ANDROID_API_KEY, FLURRY_IOS_API_KEY);

Did you call [ReactNativeFlurry enableMessaging] in native code? Did you implement didRegisterForRemoteNotificationsWithDeviceToken: in AppDelegate?

No and no.

Please let me know if the problem still occurs. Thank you!

As nothing mentioned above needed to change, the problem still exists.

Thanks!

xnth97 commented 5 years ago

Hi @markymc ,

Thank you so much for your reply! Sorry for any inconvenience this may cause. We are investigating into this and will let you know once we have a solution.

xnth97 commented 5 years ago

Hi @markymc ,

We just released a version which contains the fix. Please upgrade and re-link the RN sdk

react-native unlink react-native-flurry-sdk && react-native link react-native-flurry-sdk

and type n while being asked if you need to integrate Flurry Push. This will guarantee that push related code won't be linked to your project. Please let me know if the problem still occurs. Thank you very much for your feedback!

markymc commented 5 years ago

@xnth97 Thanks very much. We'll update to that then. 👍