1

이전 애플리케이션을 GCM에서 FCM으로 마이그레이션하면 대부분의 작업이 변환되었지만이 서비스를 사용하게되면 어떻게해야합니까? 진행 - 나는 마이그레이션 문서 (https://developers.google.com/cloud-messaging/android/android-migrate-fcm)에서 아무것도 찾지 못했을 것입니다. 아마도 매니페스트 항목을 변경해야 할 수도 있습니다 (<service android:name=".GCMIntentService" />). 어떤 지침을 많이 감사합니다GCM 인 텐트 서비스를 Firebase로 변환하는 방법

public class GCMIntentService extends GCMBaseIntentService { 

    public GCMIntentService() { 
     super("GCMIntentService"); 
    } 

    @Override 
    public void onRegistered(Context context, String regId) {...} 

    @Override 
    public void onUnregistered(Context context, String regId) {...} 

    @Override 
    protected void onMessage(Context context, Intent intent) {...} 

    @Override 
    public void onError(Context context, String errorId) {...} 
} 

:

다음은 이전 서비스입니다.

답변

관련 문제