2016-02-12 10:39:27 +00:00
|
|
|
package eu.siacs.conversations.services;
|
|
|
|
|
|
|
|
import android.content.Intent;
|
|
|
|
|
2018-05-19 18:05:45 +00:00
|
|
|
import com.google.firebase.iid.FirebaseInstanceIdService;
|
2016-02-12 10:39:27 +00:00
|
|
|
|
2018-05-19 18:05:45 +00:00
|
|
|
public class InstanceIdService extends FirebaseInstanceIdService {
|
2016-02-12 10:39:27 +00:00
|
|
|
|
|
|
|
@Override
|
|
|
|
public void onTokenRefresh() {
|
|
|
|
Intent intent = new Intent(this, XmppConnectionService.class);
|
2018-05-19 18:05:45 +00:00
|
|
|
intent.setAction(XmppConnectionService.ACTION_FCM_TOKEN_REFRESH);
|
2016-02-12 10:39:27 +00:00
|
|
|
startService(intent);
|
|
|
|
}
|
|
|
|
}
|