2016-11-29 2 views
0

OneSignal 장치 간 푸시 알림을 성공적으로 구현했지만 몇 시간 후 3 가지 장치 모두에서 작동이 중지되었습니다.OneSignal : 잠시 후 onNotificationProcessing이 호출되지 않습니다.

11-29 15:51:35.348 16383-16383/? E/FirebaseInstanceId: Failed to resolve target intent service, skipping classname enforcement 
11-29 15:51:35.348 3672-5620/? W/ActivityManager: Unable to start service Intent { act=com.google.firebase.MESSAGING_EVENT pkg=com.APP.ID (has extras) } U=0: not found 
11-29 15:51:35.353 16383-16383/? E/FirebaseInstanceId: Error while delivering the message: ServiceIntent not found. 

Application 클래스에서 내가 OneSignal 안드로이드 네이티브 SDK는 v3 및 코 틀린에 쓰기 사용하고 매니페스트

<service 
     android:name=".BackEnd.PushProcessor" 
     android:exported="false"> 
     <intent-filter> 
      <action android:name="com.onesignal.NotificationExtender" /> 
     </intent-filter> 
    </service> 

에서 onCreate

OneSignal.startInit(ctx).init() 
    OneSignal.idsAvailable { osId, gcmId -> 
     saveToFirebase(osId) 
    } 

대신 로그 캣에서 onNotificationProcessing 통화로 나타나는 출력 다음 lang, ProGuard는 난독 화가 비활성화되어 활성화 됨

답변

0

앱에 두 가지 다른 Google 프로젝트 번호가 없는지 확인하십시오. 이 경우 이전 프로젝트 번호의 Google 등록 ID (AKA pushToken)가 잠시 후에 부과됩니다.

+0

두 번 확인되었습니다. Firebase 콘솔에서 직접 복사 한 Firebase, API 키 및 발신자 ID를 사용합니다. –