corodva cannot find symbol import com.google.firebase.iid.FirebaseInstanceIdService; code example
Example: cordova cannot find symbol import com.google.firebase.iid.FirebaseMessagingService;
package com.adobe.phonegap.push;
import android.content.Intent;
import android.content.Context;
import android.content.SharedPreferences;
import android.util.Log;
import com.google.firebase.iid.FirebaseInstanceId;
import com.google.firebase.messaging.FirebaseMessagingService;
import org.json.JSONException;
import java.io.IOException;
public class PushInstanceIDListenerService extends FirebaseMessagingService implements PushConstants {
public static final String LOG_TAG = "Push_InsIdService";
@Override
public void onNewToken(String token) {
String refreshedToken = FirebaseInstanceId.getInstance().getToken();
Log.d(LOG_TAG, "Refreshed token: " + refreshedToken);
}
}