package com.growthpush;

import com.google.firebase.iid.FirebaseInstanceId;
import com.google.firebase.iid.FirebaseInstanceIdService;

public class TokenRefreshService extends FirebaseInstanceIdService {
    @Override
    public void onTokenRefresh() {
        String refreshedToken = FirebaseInstanceId.getInstance().getToken();
        GrowthPush.getInstance().getLogger().info("FCM registration token was refresh");
        GrowthPush.getInstance().registerClient(refreshedToken);
    }
}

@@ -73,184 +73,170 @@
 Id;%0A
-import com.google.firebase.iid.FirebaseInstanceIdService;%0A%0Apublic class TokenRefreshService extends FirebaseInstanceIdService %7B%0A    @Override%0A    public void onTokenRefresh() %7B
+%0Apublic class TokenRefreshService  %7B%0A    @Deprecated%0A    public void onTokenRefresh() %7B%0A        // deprecated from v2.0.11 please use ReceiverService#onNewToken()
 %0A   

delete extend from TokenRefreshService