r/android_devs • • Jun 02 '21

Help SecurityException: Not allowed to bind to service

Recently we have been observing a crash that

Fatal Exception: java.lang.SecurityExceptionNot allowed to bind to service Intent { act=com.google.android.c2dm.intent.REGISTER pkg=com.google.android.gms } android.app.ContextImpl.bindServiceCommon keyboard_arrow_down Show all 44 threads

This issue is reported only on some devices like QMobile (Android 10) version.

Upon looking and searching I can to know that it is a Firebase SDK issue. Some people said that to add permission <uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" /> but it is auto-added by the Google Play services plugin.

The issue is already reported on Firebase SDK Issue Link.

Is there any workaround for this or I have to wait until Firebase fix this

0 Upvotes

3 comments sorted by

1

u/[deleted] Jun 03 '21

[removed] — view removed comment

1

u/seabdulbasit Jun 03 '21

The same goes for this bug. It is already reported for quite a long but they have not fixed it or provided some alternative solution.