title: Android Gradle product Flavors with Parse Push Notifications
body: <p>I am trying to send Push notifications via Parse and integrating product flavors. When I implement product flavors, i am not able to receive Parse Push Notifications. Does anyone have any advise on correcting this issue</p>
  
  <p>Gradle app file:</p>
  
  <pre><code>apply plugin: 'com.android.application'
  
  android {
  compileSdkVersion 19
  buildToolsVersion "21.1.2"
  
  defaultConfig {
      applicationId "com.example.project"
          minSdkVersion 16
          targetSdkVersion 21
  
  }
  
  buildTypes {
      release {
          minifyEnabled false
          proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
      }
  }
  productFlavors{
      freeApp{
          applicationId "com.example.project.free"
  
      }
      premiumApp{
          applicationId "com.example.project.paid"
      }
  }
  }
  
  dependencies {
  compile files('libs/android-async-http-1.4.2-66-g4b6eb97.jar')
  compile files('libs/android-support-v13.jar')
  compile files('libs/bolts-android-1.2.0.jar')
  compile files('libs/Parse-1.9.2.jar')
  compile files('libs/ParseCrashReporting-1.9.2.jar')
  }
  </code></pre>
  
  <p>Android Manifest</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
  package="com.example.project"
  android:versionCode="1"
  android:versionName="1.1" &gt;
  
  &lt;uses-permission android:name="android.permission.INTERNET" /&gt;
  &lt;uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /&gt;
  &lt;uses-permission android:name="android.permission.WAKE_LOCK" /&gt;
  &lt;uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" /&gt;
  &lt;uses-permission android:name="android.permission.VIBRATE" /&gt;
  &lt;uses-permission android:name="android.permission.GET_ACCOUNTS" /&gt;
  &lt;uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" /&gt;
  
  &lt;permission android:name="com.example.project.permission.C2D_MESSAGE"
      android:protectionLevel="signature" /&gt;
  &lt;uses-permission android:name="com.example.project.permission.C2D_MESSAGE" /&gt;
  
  &lt;application
      android:name="com.example.project.Application"
      android:allowBackup="true"
      android:icon="@drawable/ic_launcher"
      android:label="@string/app_name"
      android:theme="@style/AppTheme"&gt;
  
  
  
      &lt;activity
          android:name="com.example.project.MainActivity"
          android:label="@string/app_name"
          android:screenOrientation="portrait"&gt;
          &lt;intent-filter&gt;
              &lt;action android:name="android.intent.action.MAIN" /&gt;
              &lt;category android:name="android.intent.category.DEFAULT" /&gt;
              &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
  
  
  
      &lt;meta-data android:name="com.parse.push.notification_icon" android:resource="@drawable/ic_launcher"/&gt;
  
      &lt;service android:name="com.parse.PushService" /&gt;
      &lt;receiver android:name="com.parse.ParseBroadcastReceiver"&gt;
          &lt;intent-filter&gt;
              &lt;action android:name="android.intent.action.BOOT_COMPLETED" /&gt;
              &lt;action android:name="android.intent.action.USER_PRESENT" /&gt;
          &lt;/intent-filter&gt;
      &lt;/receiver&gt;
      &lt;receiver android:name="com.parse.ParsePushBroadcastReceiver"
          android:exported="false"&gt;
          &lt;intent-filter&gt;
              &lt;action android:name="com.parse.push.intent.RECEIVE" /&gt;
              &lt;action android:name="com.parse.push.intent.DELETE" /&gt;
              &lt;action android:name="com.parse.push.intent.OPEN" /&gt;
          &lt;/intent-filter&gt;
      &lt;/receiver&gt;
      &lt;receiver android:name="com.parse.GcmBroadcastReceiver"
          android:permission="com.google.android.c2dm.permission.SEND"&gt;
          &lt;intent-filter&gt;
              &lt;action android:name="com.google.android.c2dm.intent.RECEIVE" /&gt;
              &lt;action android:name="com.google.android.c2dm.intent.REGISTRATION" /&gt;
  
              &lt;!--
                IMPORTANT: Change "com.parse.starter" to match your app's package name.
              --&gt;
              &lt;category android:name="com.example.project" /&gt;
          &lt;/intent-filter&gt;
      &lt;/receiver&gt;
  &lt;/application&gt;
  </code></pre>
  
  <p></p>