Firebase/AdMob and "Missing Push Notification Entitlement"

1,074 views
Skip to first unread message

Simone Tellini

unread,
Sep 9, 2016, 1:23:21 PM9/9/16
to Google Mobile Ads SDK Developers
Hello,

the suggested way to use AdMob is now via the Firebase pod, but that seems to bring some extra bloat (as in useless code). For one, now everytime I submit an app to iTunesConnect, I'll receive this warning from Apple:

Missing Push Notification Entitlement - Your app includes an API for Apple's Push Notification service, but the aps-environment entitlement is missing from the app's signature. To resolve this, make sure your App ID is enabled for push notification in the Provisioning Portal. Then, sign your app with a distribution provisioning profile that includes the aps-environment entitlement. This will create the correct signature, and you can resubmit your app. See "Provisioning and Development" in the Local and Push Notification Programming Guide for more information. If your app does not use the Apple Push Notification service, no action is required. You may remove the API from future submissions to stop this warning. If you use a third-party framework, you may need to contact the developer for information on removing the API.

After you’ve corrected the issues, you can use Xcode or Application Loader to upload a new binary to iTunes Connect.

All I'm using is pod 'Firebase/AdMob'. I don't care for notifications nor messaging.

Can you please make the Firebase SDK more modular, so that those things can be left out if not needed?

Veer Arjun Busani(Mobile Ads SDK Team)

unread,
Sep 9, 2016, 4:04:40 PM9/9/16
to Google Mobile Ads SDK Developers
Hi Simone,

You can always manually copy over our SDK or use pod 'Google-Mobile-Ads-SDK''~> 7.10.1' to only get the Mobile Ads SDK.

Thanks,
Arjun Busani
Mobile Ads SDK Team

Simone Tellini

unread,
Sep 9, 2016, 5:35:08 PM9/9/16
to Google Mobile Ads SDK Developers
Yes, I know, but that proves that "the best way to use AdMob is with Firebase" is not entirely true (https://firebase.google.com/docs/admob/admob-firebase) ;-). The wording in that page seems to imply that the standalone SDK might be deprecated in future, otherwise I'm confused: why have two different kits? Apart from its dependency on Firebase, does Firebase-AdMob behave any differently than Google-Mobile-Ads-SDK?

Also, as suggested there, I might want to use AdMob + Firebase Analytics (which I actually do in some projects) and still I would like not to have push notifications API's in my binary...

Veer Arjun Busani(Mobile Ads SDK Team)

unread,
Sep 12, 2016, 2:17:19 PM9/12/16
to Google Mobile Ads SDK Developers
Hi Simone,

If you are using pod 'Firebase/AdMob', then apart from the Mobile Ads SDK, Firebase Analytics will be installed as well. Since, Mobile Ads SDK does not entail this dependency, I would suggest you to contact Firebase support through SO. They will be able to assist you with this issue.

For more on Firebase dependencies, you can go through our Readme file in the SDK

Thanks,
Arjun Busani
Mobile Ads SDK Team

ad...@zermaninc.com

unread,
Dec 2, 2016, 9:03:15 PM12/2/16
to Google Mobile Ads SDK Developers


On Monday, September 12, 2016 at 11:17:19 AM UTC-7, Veer Arjun Busani(Mobile Ads SDK Team) wrote:
Hi Simone,

If you are using pod 'Firebase/AdMob', then apart from the Mobile Ads SDK, Firebase Analytics will be installed as well. Since, Mobile Ads SDK does not entail this dependency,

The instructions in the .md file that comes with the Firebase distribution specifically say that mobile ads *do* depend on Analytics. To quote: 

(~> X)" below means that the SDK requires all of the frameworks from X. You should make sure to include all of the frameworks from X when including the SDK.

GoogleMobileAds.framework ## AppIndexing (~> Analytics)

 Is this not correct?

ad...@zermaninc.com

unread,
Dec 2, 2016, 9:19:09 PM12/2/16
to Google Mobile Ads SDK Developers
In addition the instructions at https://firebase.google.com/docs/admob/ios/quick-start specifically say to link to *all* of the Analytic libraries as well as the GoogleMobileAds library.

Veer Arjun Busani(Mobile Ads SDK Team)

unread,
Dec 5, 2016, 10:27:52 AM12/5/16
to Google Mobile Ads SDK Developers
Hi there,

That is part of the Firebase bundle where our SDK would depend on certain core libraries, including the Analytics framework. But this is only if you want to include Firebase and you can still use our standalone framework, which only have native iOS dependencies.

Thanks,
Arjun Busani
Mobile Ads SDK Team

Reply all
Reply to author
Forward
0 new messages