anotherim/src/playstore/java/eu/siacs/conversations/services/InstanceIdService.java
2018-05-19 20:05:45 +02:00

16 lines
406 B
Java

package eu.siacs.conversations.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);
}
}