当前位置: 动力学知识库 > 问答 > 编程问答 >

android - Multiple API Keys fcm and google map

问题描述:

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.

分享给朋友:
您可能感兴趣的文章:
随机阅读: