Skip to content

firebase-database version 16.0.2 lacks INTERNET permission #18

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
samtstern opened this issue Sep 14, 2018 · 0 comments · Fixed by #19
Closed

firebase-database version 16.0.2 lacks INTERNET permission #18

samtstern opened this issue Sep 14, 2018 · 0 comments · Fixed by #19
Assignees
Labels
type: bug Something isn't working

Comments

@samtstern
Copy link
Contributor

[READ] Step 1: Are you in the right place?

Issues filed here should be about bugs in the code in this repository.
If you have a general question, need help debugging, or fall into some
other category use one of these other channels:

  • For general technical questions, post a question on StackOverflow
    with the firebase tag.
  • For general Firebase discussion, use the firebase-talk
    google group.
  • For help troubleshooting your application that does not fall under one
    of the above categories, reach out to the personalized
    Firebase support channel.

[REQUIRED] Step 2: Describe your environment

  • Android Studio version: 3.3 alpha
  • Firebase Component: Database
  • Component version: 16.0.2

[REQUIRED] Step 3: Describe the problem

Steps to reproduce:

I have a simple app with only these dependencies:

dependencies {
    implementation 'androidx.appcompat:appcompat:1.0.0-alpha1'
    implementation 'androidx.constraintlayout:constraintlayout:1.1.2'

    implementation 'com.google.firebase:firebase-database:16.0.2'
}

With 16.0.1 I can see this:

$ ./gradlew clean assembleDebug
$ cat app/build/intermediates/merged_manifests/debug/processDebugManifest/merged/AndroidManifest.xml  | grep permission
    <uses-permission android:name="android.permission.INTERNET" />

However with 16.0.2 the same operation shows me no permissions in the merged manifest. If I run my app, it crashes pretty much immediately for lack of INTERNET permission.

Relevant Code:

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        FirebaseApp.initializeApp(this, new FirebaseOptions.Builder()
            .setApplicationId("12345")
            .setDatabaseUrl("https://mockproject-1234.firebaseio.com")
            .build());

        DatabaseReference ref = FirebaseDatabase.getInstance().getReference();
    }
}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants