FastGCM icon indicating copy to clipboard operation
FastGCM copied to clipboard

permission problem....

Open sirvon opened this issue 9 years ago • 11 comments

this error is popping up on all apps I have this lib in...

Failure [INSTALL_FAILED_DUPLICATE_PERMISSION
perm=co.mobiwise.library.permission.C2D_MESSAGE pkg=com.xxxxxx

sirvon avatar Sep 09 '15 00:09 sirvon

As message says, probably you have duplicated permission. Check permissions in the library Manifest here: https://github.com/iammert/FastGCM/blob/master/library/src/main/AndroidManifest.xml and compare it with your app permissions. If you notice duplicates, remove permissions in your app and let library set it.

I'm not sure if it helps, but that's my guess.

pwittchen avatar Oct 12 '15 17:10 pwittchen

No way.... i get same error on two different apps that use fastgcm,

any solutions?

vicktor avatar Oct 13 '15 15:10 vicktor

Did you guys tried @pwittchen 's solution. Library's Manifest.xml already has that permission. Did you try to remove this permission from your app module ? @sirvon @vicktor

iammert avatar Oct 13 '15 15:10 iammert

Yes.... but error remains....

vicktor avatar Oct 13 '15 15:10 vicktor

@vicktor can you paste your manifest.xml here.

iammert avatar Oct 20 '15 08:10 iammert

I had the same problem!!!!

raulamoretti avatar Oct 21 '15 20:10 raulamoretti

@raulamoretti @vicktor @sirvon I just merged @raulamoretti 's commit. Can you guys try new version of library and ley me know if it is solved or not. Here is updated jitpack : compile 'com.github.iammert:FastGCM:501d5aaa31'

iammert avatar Oct 22 '15 16:10 iammert

@iammert It's still remain on version 1.1, any idea?

esafirm avatar Feb 02 '16 22:02 esafirm

Has this been fixed @iammert ? I have two apps using the library, and this issue will prevent the two app to coexist together.

When I extract the compiled AndroidManifest.xml, both of them have

<permission android:name="co.mobiwise.fastgcm.permission.C2D_MESSAGE" android:protectionLevel="signature"/>
<uses-permission android:name="co.mobiwise.fastgcm.permission.C2D_MESSAGE"/>

I'm expecting the package name in the permission to be changed to our own app package, but looks like this is there.

elye avatar Apr 11 '16 13:04 elye

Refers to the issue reported in http://stackoverflow.com/questions/27773143/can-i-remove-this-permission-it-cause-install-failed-duplicate-permission-in-a, this seems critical for the library. If for every App that uses FastGCM will end up having

<permission android:name="co.mobiwise.library.permission.C2D_MESSAGE" android:protectionLevel="signature"/> .

Then this would be a problem in a long run, where user might not be able to install two apps that use this library. Perhaps the quick fix is to remove this permission from the library, and have user explicitly indicate on their own AnroidManifest file instead with it's unique package name? Thanks.

elye avatar Apr 11 '16 13:04 elye

Do you guys still get this error. You can use version 1.2. compile 'com.github.iammert:FastGCM:1.2'

iammert avatar May 02 '16 14:05 iammert