question

Paul-9359 avatar image
0 Votes"
Paul-9359 asked RobCaplan edited

java.lang.IllegalStateException: Not allowed to start service Intent / com.google.android.gms.measurement.AppMeasurementService

Hi everyone, I'm getting this crash logged in App Center for my Xamarin.Forms App (Android),

 android.app.ContextImpl.startServiceCommon
 ContextImpl.java, line 1720

 java.lang.IllegalStateException: Not allowed to start service Intent { act=com.google.android.gms.measurement.UPLOAD cmp=org.myappname.app/com.google.android.gms.measurement.AppMeasurementService (has extras) }: app is in background uid UidRecord{90e48a1 u0a147 RCVR bg:+21m32s364ms idle change:uncached procs:1 seq(598,598,598)}

Seems related to Firebase Analytics as given here. Do I need to add a service tag in my manifest file as mentioned in the Firebase Analytics docs? Or is this addressed in any newer versions. I couldn't find release notes for each FB Analytics SDK versions in https://github.com/xamarin/GooglePlayServicesComponents page.

I'm using Xamarin.Firebase.Analytics 117.0.1 & Xamarin.Forms v5.0.0.1709-pre4 now. Thanks




dotnet-xamarin
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

If this exception from the App Center, you can get support for App Center directly from within the App Center portal. Anytime you need it, open the help menu in the upper right corner of the App Center portal: ? > Contact support. Use the message field to explain your issue or question. like this thread: https://docs.microsoft.com/en-us/appcenter/help

0 Votes 0 ·

0 Answers