앱을 실행 하고 푸시을 보내면 잘 날라 오는대
앱을 닫고 푸시을 보내면 앱 오류가 뜨면서 종료가 되버리네요 ㅠ
백그라운드에서 실행이 안되는거 같은대
혹시 아시는분 답변 부탁 드립니다. ㅠ
퍼미션 권한두 전부 들어가 있습니다. ~
<activity
android:name="com.test_App.Popup"
android:excludeFromRecents="true"
android:allowTaskReparenting="true"
android:screenOrientation="portrait"
android:theme="@android:style/Theme.Translucent" />
<activity android:exported="true" android:name="com.plugin.gcm.PushHandlerActivity" />
<activity
android:name="com.test_App.popup.ShareDialog"
android:screenOrientation="portrait"
android:theme="@android:style/Theme.Translucent">
</activity>
<receiver android:name="com.plugin.gcm.CordovaGCMBroadcastReceiver" android:permission="com.google.android.c2dm.permission.SEND">
<intent-filter>
<action android:name="com.google.android.c2dm.intent.RECEIVE" />
<action android:name="com.google.android.c2dm.intent.REGISTRATION" />
<category android:name="com.test_App" />
</intent-filter>
</receiver>
<service android:name="com.plugin.gcm.GCMIntentService" />
11-02 12:15:21.386 8332-8332/com.test_App V/GCMBroadcastReceiver: onReceive: com.google.android.c2dm.intent.RECEIVE
11-02 12:15:21.389 8332-8332/com.test_App V/GCMRegistrar: Setting the name of retry receiver class to com.plugin.gcm.CordovaGCMBroadcastReceiver
11-02 12:15:21.390 8332-8332/com.test_App V/GCMBroadcastReceiver: GCM IntentService class: com.plugin.gcm.GCMIntentService
11-02 12:15:21.394 8332-8332/com.test_App V/GCMBaseIntentService: Acquiring wakelock
11-02 12:15:21.406 8332-8332/com.test_App E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.test_App, PID: 8332
java.lang.RuntimeException: Unable to start receiver com.plugin.gcm.CordovaGCMBroadcastReceiver: java.lang.IllegalStateException: Not allowed to start service Intent { act=com.google.android.c2dm.intent.RECEIVE flg=0x1000010 pkg=com.test_App cmp=com.test_App/com.plugin.gcm.GCMIntentService (has extras) }: app is in background uid UidRecord{ff101d9 u0a276 RCVR idle procs:1 seq(0,0,0)}
at android.app.ActivityThread.handleReceiver(ActivityThread.java:3397)
at android.app.ActivityThread.-wrap18(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1780)
at android.os.Handler.dispatchMessage(Handler.java:105)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6938)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374)
Caused by: java.lang.IllegalStateException: Not allowed to start service Intent { act=com.google.android.c2dm.intent.RECEIVE flg=0x1000010 pkg=com.test_App cmp=com.test_App/com.plugin.gcm.GCMIntentService (has extras) }: app is in background uid UidRecord{ff101d9 u0a276 RCVR idle procs:1 seq(0,0,0)}
at android.app.ContextImpl.startServiceCommon(ContextImpl.java:1538)
at android.app.ContextImpl.startService(ContextImpl.java:1484)
at android.content.ContextWrapper.startService(ContextWrapper.java:663)
at android.content.ContextWrapper.startService(ContextWrapper.java:663)
at com.google.android.gcm.GCMBaseIntentService.runIntentInService(GCMBaseIntentService.java:282)
at com.google.android.gcm.GCMBroadcastReceiver.onReceive(GCMBroadcastReceiver.java:55)
at android.app.ActivityThread.handleReceiver(ActivityThread.java:3390)
at android.app.ActivityThread.-wrap18(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1780)
at android.os.Handler.dispatchMessage(Handler.java:105)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6938)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374)
Not allowed to start service Intent { act=com.google.android.c2dm.intent.RECEIVE flg=0x1000010 pkg=com.test_App cmp=com.test_App/com.plugin.gcm.GCMIntentService (has extras) }: app is in background uid UidRecord{68e7395 u0a276 RCVR idle pr