Android Question unableto start service firebasemessaging

tufanv

Expert
Licensed User
Longtime User
Hello,

I have updated my app with api 26 and b4a 8.3 , I am getting an error report from firebase that some users are getting :

File
ActivityThread.java
Exception message
java.lang.RuntimeException: Unable to start service ct.canlidoviz.firebasemessaging@99b7161 with null: java.lang.IllegalStateException: Not allowed to start service Intent { cmp=ct.canlidoviz/.starter }: app is in background uid UidRecord{aa17b25 u0a106 SVC idle procs:1 seq(0,0,0)} at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:3651)

what may be the problem ?
 

ppgirl

Member
Licensed User
Longtime User
Hi Erel,

I have updated B4A 8.3 , FirebaseNotifications 1.21 , FirebaseAnalytics 1.02 , FirebaseAdmob 1.51 . SDK manager is updated . Same issue is reported from firebase log -

Exception java.lang.RuntimeException: Unable to start service xxx.xxx.firebasemessaging@46cc7f0 with Intent { cmp=xxx.xxx/.firebasemessaging }: java.lang.IllegalStateException: Not allowed to start service Intent { cmp=xxx.xxx/.starter }: app is in background uid UidRecord{df82c96 u0a86 SVC idle procs:1 seq(0,0,0)}
android.app.ActivityThread.handleServiceArgs (ActivityThread.java:3696)
android.app.ActivityThread.-wrap21 ()
android.app.ActivityThread$H.handleMessage (ActivityThread.java:1801)
android.os.Handler.dispatchMessage (Handler.java:105)
android.os.Looper.loop (Looper.java:164)
android.app.ActivityThread.main (ActivityThread.java:6940)
java.lang.reflect.Method.invoke (Method.java)
com.android.internal.os.Zygote$MethodAndArgsCaller.run (Zygote.java:327)
com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1374)
arrow_drop_down
Caused by java.lang.IllegalStateException: Not allowed to start service Intent { cmp=com.xxx/.starter }: app is in background uid UidRecord{df82c96 u0a86 SVC idle procs:1 seq(0,0,0)}


User
Country Code: —
Carrier Code: —
Carrier: SKTelecom
Locale: ko-KR
trending_up
Performance
VM free: 186.38KB
VM total: 1.88MB
VM max: 192MB
Battery level: 18%
Charging state: Charging Wireless
Connection State: Wifi
stay_primary_portraits

Device
Manufacturer: Samsung
Model: SM-N935S
Board: Universal8890
Android API: 26
Android OS: 8.0.0
Brand: Samsung
RAM: 3.44GB
Orientation: Portrait
Proximity to user: —
bug_report

Error
Date: Jul 26, 2018, 7:37:45 PM
App Version: 28 (1.2.8)
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
Hi Erel,

I have updated B4A 8.3 , FirebaseNotifications 1.21 , FirebaseAnalytics 1.02 , FirebaseAdmob 1.51 . SDK manager is updated . Same issue is reported from firebase log
You should always start a NEW THREAD for any question you have. Never post to existing threads.
Make sure to uplaod a example project which shoes the issue.
 
Upvote 0
Top