benbahrenburg / benCoding.Android.Tools

A collection of utilities designed to make working with Titanium on Android alittle easier.
Other
59 stars 36 forks source link

Service not starting after boot #14

Open gorsk opened 9 years ago

gorsk commented 9 years ago

Hey,

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

Bradleycorn commented 9 years ago

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?

ifavo commented 9 years ago

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

julien9999 commented 7 years ago

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