anotherim/src/playstore/java/eu/siacs/conversations/services/InstanceIdService.java

16 lines
406 B
Java
Raw Normal View History

package eu.siacs.conversations.services;
import android.content.Intent;
2018-05-19 18:05:45 +00:00
import com.google.firebase.iid.FirebaseInstanceIdService;
2018-05-19 18:05:45 +00:00
public class InstanceIdService extends FirebaseInstanceIdService {
@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);
startService(intent);
}
}