FastGCM
FastGCM copied to clipboard
permission problem....
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
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.
No way.... i get same error on two different apps that use fastgcm,
any solutions?
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
Yes.... but error remains....
@vicktor can you paste your manifest.xml here.
I had the same problem!!!!
@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 It's still remain on version 1.1, any idea?
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.
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.
Do you guys still get this error. You can use version 1.2.
compile 'com.github.iammert:FastGCM:1.2'