INSTALL_FAILED_DUPLICATE_PERMISSION… C2D_MESSAGE

I am using Google notifications in my app, and until now I have done below in the manifest: <!– GCM –> <uses-permission android:name=”android.permission.GET_ACCOUNTS” /> <!– GCM requires a Google account. –> <uses-permission android:name=”android.permission.WAKE_LOCK” /> <!– Keeps the processor from sleeping when a message is received. –> <uses-permission android:name=”com.google.android.c2dm.permission.RECEIVE” /> <!– This app has permission to … Read more

How to send push notification to web browser?

I have been reading for past few hours about Push Notification API and Web Notification API. I also discovered that Google & Apple gives push notification service for free via GCM and APNS respectively. I am trying to understand if we can implement push notification to browsers using Desktop Notification, which I believe is what … Read more

Error:Conflict with dependency ‘com.google.code.findbugs:jsr305’

I created a new project in Android Studio 2.2 Preview 1 with Android App and Backend module with Google Messaging. This is the app file: apply plugin: ‘com.android.application’ android { compileSdkVersion 23 buildToolsVersion “23.0.3” defaultConfig { applicationId “com.xxx.xxx” minSdkVersion 15 targetSdkVersion 23 versionCode 1 versionName “1.0” testInstrumentationRunner “android.support.test.runner.AndroidJUnitRunner” } buildTypes { release { minifyEnabled false … Read more

google-services.json for different productFlavors

Update: GCM is deprecated, use FCM I’m implementing the new Google Cloud Messaging following the guides from the Google Developers page here I’ve successfully run and test it. But my problem now is I have different product flavors with different applicationId/packageName and different Google Cloud Messaging Project Id. The google-services.json have to be put at … Read more