Hi all.
I received an email from the Crashlytics.
My app is setup for targetSDK 34.
This is what happened - in my app I'm using Firebug messaging system. I read in Erel tutorial that I need to add 2 lines into my manifest and specify a ForegroundServiceType.
What type to specify for Firebug messaging system? Should it be remoteMessaging? Description of this type shows this
developer.android.com
Here is an error log form the Crashlitycs.
I installed a copy of my app from the Google Play market and tested it on my Samsung S23+ with Android 14 and it. What I've notice last night when my phone was in Do Not Disturbe mode that if I sent a message to my phone it pops up a small window with 2 questions
Close the App?
Wait
Sent a new message again at 2:30 AM - message icon comes up.
Sent a new message agan in about 9 AM - works fine - icon and beep. Could it be just a coinsedence?
My app is not B4XPages and I'm using Service but not Receiver.
Thanks.
I received an email from the Crashlytics.
My app is setup for targetSDK 34.
This is what happened - in my app I'm using Firebug messaging system. I read in Erel tutorial that I need to add 2 lines into my manifest and specify a ForegroundServiceType.
What type to specify for Firebug messaging system? Should it be remoteMessaging? Description of this type shows this
B4X:
Transfer text messages from one device to another. Assists with continuity of a user's messaging tasks when they switch devices.
Foreground service types are required | Android Developers
This document details the new requirements for foreground service types in apps targeting Android 14, outlining specific types, manifest declarations, permissions, and runtime prerequisites.
Here is an error log form the Crashlitycs.
B4X:
Fatal Exception: java.lang.RuntimeException: android.app.MissingForegroundServiceTypeException: Starting FGS without a type callerApp=ProcessRecord{82af9ba 26943:alex.HCMS.EVV/u0a532} targetSDK=34
at anywheresoftware.b4a.objects.ServiceHelper$StarterHelper.handleStartIntent(ServiceHelper.java:173)
at alex.HCMS.EVV.firebasemessaging.handleStart(firebasemessaging.java:102)
at alex.HCMS.EVV.firebasemessaging.access$000(firebasemessaging.java:8)
at alex.HCMS.EVV.firebasemessaging$2.run(firebasemessaging.java:83)
at android.os.Handler.handleCallback(Handler.java:958)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:230)
at android.os.Looper.loop(Looper.java:319)
at android.app.ActivityThread.main(ActivityThread.java:8919)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:578)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1103)
I installed a copy of my app from the Google Play market and tested it on my Samsung S23+ with Android 14 and it. What I've notice last night when my phone was in Do Not Disturbe mode that if I sent a message to my phone it pops up a small window with 2 questions
Close the App?
Wait
Sent a new message again at 2:30 AM - message icon comes up.
Sent a new message agan in about 9 AM - works fine - icon and beep. Could it be just a coinsedence?
My app is not B4XPages and I'm using Service but not Receiver.
Thanks.