aboutsummaryrefslogtreecommitdiffstats
path: root/src/standardPush/java/de/pixart/messenger/services/InstanceIdService.java
blob: 3db7219c090d4d2e41081e524857f5c46aed4512 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
package de.pixart.messenger.services;

import android.content.Intent;
import com.google.firebase.iid.FirebaseInstanceIdService;

public class InstanceIdService extends FirebaseInstanceIdService {

    @Override
    public void onTokenRefresh() {
        Intent intent = new Intent(this, XmppConnectionService.class);
        intent.setAction(XmppConnectionService.ACTION_FCM_TOKEN_REFRESH);
        startService(intent);
    }
}