Skip to content
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

permission problem.... #5

Open
sirvon opened this issue Sep 9, 2015 · 11 comments
Open

permission problem.... #5

sirvon opened this issue Sep 9, 2015 · 11 comments

Comments

@sirvon
Copy link

sirvon commented Sep 9, 2015

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
@pwittchen
Copy link

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.

@vicktor
Copy link

vicktor commented Oct 13, 2015

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

any solutions?

@iammert
Copy link
Owner

iammert commented Oct 13, 2015

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

@vicktor
Copy link

vicktor commented Oct 13, 2015

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

@iammert
Copy link
Owner

iammert commented Oct 20, 2015

@vicktor can you paste your manifest.xml here.

@raulamoretti
Copy link
Contributor

I had the same problem!!!!

@iammert
Copy link
Owner

iammert commented Oct 22, 2015

@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'

@esafirm
Copy link

esafirm commented Feb 2, 2016

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

@elye
Copy link

elye commented Apr 11, 2016

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
Copy link

elye commented Apr 11, 2016

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.

@iammert
Copy link
Owner

iammert commented May 2, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants