blob: 33c5119e05a883f052824d59ba612edec89ab41b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
package de.pixart.messenger.services;
import android.content.Intent;
import android.os.Bundle;
import com.google.android.gms.gcm.GcmListenerService;
public class PushMessageReceiver extends GcmListenerService {
@Override
public void onMessageReceived(String from, Bundle data) {
Intent intent = new Intent(this, XmppConnectionService.class);
intent.setAction(XmppConnectionService.ACTION_GCM_MESSAGE_RECEIVED);
intent.replaceExtras(data);
startService(intent);
}
}
|