问题描述:

In my app, I used FCM and Google Maps. I have 2 API Keys. Android does not allow me to use them together.

How can I use one API Key for the both of them?

网友答案:

For Maps API, you need to add the following line in your manifest:

   <meta-data
        android:name="com.google.android.geo.API_KEY"
        android:value="YOUR_API_KEY"/>

And for FCM the key, it can be seen in your Firebase Console in the Cloud Messaging tab.

相关阅读:
Top