2017-01-09 1 views
0

Firebase Crash Reporting 및 Firebase Remote Config를 사용하고 있지만 Firebase Cloud Messaging을 사용하고 있지 않습니다. 두 버전 모두 9.8.0입니다.Firebase Cloud Messaging을 사용하고 있지 않지만 클라우드 메시징 권한이 누락되었습니다.

그래서, 내가 이해하지 못하는 이유는 로그에이 오류를보고하고있다 : 나는 Google 클라우드 메시징에 따라 (하지만 사용하지하고 있기 때문에

java.lang.SecurityException: Not allowed to start service Intent { act=com.google.android.c2dm.intent.REGISTER pkg=com.google.android.gms (has extras) } without permission com.google.android.c2dm.permission.RECEIVE 
    at android.app.ContextImpl.startServiceCommon(ContextImpl.java:1266) 
    at android.app.ContextImpl.startService(ContextImpl.java:1243) 
    at android.content.ContextWrapper.startService(ContextWrapper.java:588) 
    at com.google.firebase.iid.zzf.zzb(Unknown Source) 
    at com.google.firebase.iid.zzf.zza(Unknown Source) 
    at com.google.firebase.iid.zzf.zzb(Unknown Source) 
    at com.google.firebase.iid.zzf.zza(Unknown Source) 
    at com.google.firebase.iid.zzd.zzc(Unknown Source) 
    at com.google.firebase.iid.zzd.getToken(Unknown Source) 
    at com.google.firebase.iid.FirebaseInstanceId.getToken(Unknown Source) 
    at com.google.firebase.iid.FirebaseInstanceId.zzaae(Unknown Source) 
    at com.google.firebase.iid.FirebaseInstanceIdService.zza(Unknown Source) 
    at com.google.firebase.iid.FirebaseInstanceIdService.zzm(Unknown Source) 
    at com.google.firebase.iid.zzb$2.run(Unknown Source) 
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113) 
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588) 
    at java.lang.Thread.run(Thread.java:818) 

그것이 될 수 - 라이브러리 의존성을 - 회사 내부 라이브러리를)?

심각한 결과가 있습니까?

답변

1

더그 스티븐슨 (Doug Stevenson)이 this groups post에 언급했듯이 웹 로그 분석, 오류보고 및 원격 구성에서 RECEIVE, C2D_MESSAGE 및 WAKE_LOCK 권한이 필요합니다.

주요 용도는 보안 토큰을 생성하고 WAKE_LOCK의 경우 데이터 손실을 방지하기 위해 Android가 수집 된 데이터를 전송하기 전에 앱의 프로세스를 종료하지 않도록 유지하는 것입니다.

관련 문제