I have implemented a library project which has GMS play-services dependency, and I use GCM, Google Cloud Messaging to receive notifications.
This library is a part of another android project which I can override properties, add custom code and then build android applications.
Everything is fine as far as I install one app built with a specific packageName, but if I change the packageName, rebuild and install the second app on the same device, I got the error INSTALL_FAILED_CONFLICTING_PROVIDER during the installation execution.
Removing GMS play-services dependency resolve the installation issue.
My question is how should I handle that ?
Can I specify the authorities for providers coming from GMS libraries ? Make something uniq for the built apk ?
Thank you