Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Isolated Background Services in Xamarin Android

$
0
0

Hello everybody, I have problem initiating an isolated services, sometimes known as Long Running Services. The process crashes on start. The same process starts and operates with no issues if run without IsolatedProcess attribute.
So I have discovered the issue is with the top part of the code, please look at the code below;

namespace AppClient.Droid
{
    [Service
        (Name= "com.Location.App.SimpleService", 
        IsolatedProcess = true, 
        Icon = "@drawable/icon", 
        Process = "com.Location.App.SimpleService", 
        Label = "SimpleService")]
    public class SimpleService : Service
    { ...........}

Please note that com.Location.App is my package name set into Manifest xml file - <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.Location.App"

I initiate process from MainActivity during application load and the service should remain running even if UI of the application is closed.

I will appreciate for your time.


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>