Yes it is possible. Parse.com documentation says:
You can also specify the intention to be launched in the background when a push notification is received. This will allow your application to perform custom processing for the notification and can be used regardless of whether you are selected to display the message in the system bar. To perform custom notification processing, set the Action entry to the push notification data dictionary into the action of the intent that you want to run. Android recommendations show that you prefix actions with your package name in order to avoid namespace conflicts with other application launches.
So, you send push notifications in this way:
JSONObject data = new JSONObject("{\"action\": \"com.example.UPDATE_STATUS\""}));
ParsePush push = new ParsePush();
push.setData(data);
push.sendPushInBackground();
AndroidManifest.xml , , push- com.example.UPDATE_STATUS:
<receiver android:name="com.example.MyBroadcastReceiver" android:exported="false">
<intent-filter>
<action android:name="com.example.UPDATE_STATUS" />
</intent-filter>
</receiver>
:
public class MyBroadcastReceiver extends BroadcastReceiver {
@Override
public void onReceive(Context context, Intent intent) {
context.startActivity(new Intent(context, MyActivity.class));
}
}