Skip to content

[Bug] Bad minSdkVersion in firebase_messaging_cpp.aar #1510

@ChristophePretty

Description

@ChristophePretty

[REQUIRED] Please fill in the following fields:

  • Firebase C++ SDK version: 11.7.0
  • Problematic Firebase Component: Messaging
  • Platform you are using the C++ SDK on: Mac
  • Platform you are targeting: Android

[REQUIRED] Please describe the issue here:

I am using Firebase Messaging from C++ Sdk 11.7.0.
The generated Manifest add the request permissions for

 <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
 <uses-permission android:name="android.permission.READ_PHONE_STATE" />
 <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />

There were not requested in previous Sdk version and they are not needed.

It looks like there is a typo in the AndroidManifest.xml of the file firebase_messaging_cpp.aar:
The minSdkVersion is "1" (from "14" in previous version).

Steps to reproduce:

Have you been able to reproduce this issue with just the Firebase C++ quickstarts ? NA
What's the issue repro rate? (eg 100%, 1/5 etc) 100%

What happened? How can we make the problem occur?

Just build an android app with Firebase Messaging C++ Sdk 11.7.0 and check the generated AndroidManifest.xml.
The permissions: READ_PHONE_STATE, WRITE_EXTERNAL_STORAGE and READ_EXTERNAL_STORAGE are present and should not be.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions