benCoding.Android.Tools icon indicating copy to clipboard operation
benCoding.Android.Tools copied to clipboard

Service not starting after boot

Open gorsk opened this issue 9 years ago • 3 comments

Hey,

how could i get just the notification service running after restart of android? i cant get the service example to work regards goran

gorsk avatar Mar 03 '15 17:03 gorsk

2nd this. Would love to be able to start my (titanium created) service on boot instead of the whole app.

The service example shows a "serviceName" property with a value of "com.mypackage.MyService". Where is com.mypackage.myservice created? When I create an android service per the titanium docs, it doesn't ever get assigned a "fully qualified name", so I'm not sure where this comes from?

Bradleycorn avatar Jul 28 '15 00:07 Bradleycorn

after configuring the service ( http://docs.appcelerator.com/platform/latest/#!/guide/Android_Services ) build the app and then check the AndroidManifest.xml in your build/android folder. You will find something like this:

    <service android:name="xx.xx.xx.BackgroundService"/>

Its basically your app bundle id + your service javascript filename (with upper character in the beginning) + the word "Service"

Example:

Bundle id: com.my.app Service file: background.js The service will be: com.my.app.BackgroundService

ifavo avatar Aug 09 '15 12:08 ifavo

Hi, any help on that ? I can't get the service to launch. thanks

julien9999 avatar Apr 12 '17 20:04 julien9999