안녕하세요. 지금 앱 구조는 이렇습니다.
화면이 없게 백그라운드로 작업되는 메인클레스를 만든 후 이것을 라이브러리화 시켜서
다른 앱에 심어두고 백단에서 돌아가고 있습니다.
GCM은 화면이 없는 백그라운드에 넣어두고 사용하려고 하는데 이게 메인클레스에서 만들어두고 사용할 때는 정상
적으로 작동하는데 다른 프로그램으로 집어 넣으면 문제가 생깁니다.
구조상 이게 가능한것인데 제가 잘못 작업을 한것인지 아니면 불가능한것인지 알고싶습니다.
요약.
A 앱 (내부 GCM 작업) -> 정상 작동
B 앱 (내부에 A앱을 라이브러리화 시켜서 백그라운드로 삽입) -> 작동 안함
GCMRegistrar.register(this, "프로젝트id" ); 와 같이 했는데 이부분에서 넘어가질 않네요
로그캣 결과는 아래와 같습니다.
01-19 10:06:35.472: V/Activity(20643): onStart com.example.test123.MainActivity@4194dd28
01-19 10:06:35.482: V/Activity(20643): onResume com.example.test123.MainActivity@4194dd28
01-19 10:06:35.662: D/OpenGLRenderer(20643): Enabling debug mode 0
01-19 10:06:35.842: V/GCMBroadcastReceiver(20643): onReceive: com.google.android.c2dm.intent.REGISTRATION
01-19 10:06:35.842: V/GCMBroadcastReceiver(20643): GCM IntentService class: com.example.test123.GCMIntentService
01-19 10:06:35.842: V/GCMBaseIntentService(20643): Acquiring wakelock
01-19 10:06:35.862: I/ActivityManager(20643): Timeline: Activity_idle id: android.os.BinderProxy@41948ff0 time:292130163
01-19 10:06:35.892: V/GCMBroadcastReceiver(20643): onReceive: com.google.android.c2dm.intent.REGISTRATION
01-19 10:06:35.892: V/GCMBroadcastReceiver(20643): GCM IntentService class: com.example.test123.GCMIntentService
01-19 10:06:35.892: V/GCMBaseIntentService(20643): Acquiring wakelock