NativeScript icon indicating copy to clipboard operation
NativeScript copied to clipboard

background service?

Open danielzzz opened this issue 11 years ago • 59 comments

hi, would it be possible to create a background service with native script?

thx, dan

danielzzz avatar Mar 06 '15 11:03 danielzzz

Yes same question

abhikmitra avatar Mar 07 '15 08:03 abhikmitra

:+1:

sunel avatar Mar 07 '15 08:03 sunel

I need to know the same thing, anybody? ;-)

mzalazar avatar Mar 09 '15 01:03 mzalazar

Currently, NativeScript for Android does not support this scenario (at least we haven't tested it). However, this is technically possible and we will provide support for it.

slavchev avatar Mar 13 '15 16:03 slavchev

Please use this issue: https://github.com/NativeScript/NativeScript/issues/85

enchev avatar May 18 '15 12:05 enchev

There are 2 thread referencing each other ... is this ticket issues/2 the main one for commenting on background threads, or is this?: https://github.com/NativeScript/NativeScript/issues/85

gavinengel avatar May 20 '15 00:05 gavinengel

As @enchev said, #85 should be used as the main one, I think.

RangerMauve avatar May 20 '15 01:05 RangerMauve

+1 If "Native"script can not even create a simple background service, it should not be called "native".

sgon00 avatar Aug 04 '15 07:08 sgon00

Just to clarify for any new people coming to this issue. This is a different request than #85, 85 is to allow background processing as a new thread. This one is to create a Service which they typically run all the time. Now maybe this is dependent on #85, but they are different requests.

NathanaelA avatar Oct 22 '15 20:10 NathanaelA

@NathanaelA this issue looks closed however. @slavchev would it be possible to re-open this? Or is there a general ticket covering this issue for IOS and Android? Thanks.

pacal avatar Oct 22 '15 20:10 pacal

Is it possible that the service is in a library / jar and running the service from ns?

x4080 avatar Nov 13 '15 06:11 x4080

Currently NativeScript runtime for Android (you mentioned jar library) does not support this scenario though it is technically possible. I would suggest to keep this issue closed as there are other issues on this topic, for example https://github.com/NativeScript/NativeScript/issues/85, with active discussion.

slavchev avatar Nov 13 '15 06:11 slavchev

OK, since its quite different, we must solve these 2 problems I think . notifications is quite important as responsiveness of the ux . thanks

x4080 avatar Nov 13 '15 08:11 x4080

+1 this is essential for apps that incorporate functionality like geo-fencing and event reminders. We need to be able to have a background service running.

mdgiles avatar Dec 03 '15 20:12 mdgiles

+1 i wish if there any way to make background service with nativescript

ahmadmarafa avatar Dec 30 '15 18:12 ahmadmarafa

+1 Need this for a simple app that reports the users location periodically even in the background. This requires a service for Android as best I can tell

burkeholland avatar Jan 24 '16 15:01 burkeholland

+1 I also need this, somehow we need to report user location at all times (private app)

Daxito avatar Feb 10 '16 04:02 Daxito

When does NativeScript plans to implement background services? We need to show reminders to users when they are not using the application.

erkanarslan avatar Mar 01 '16 22:03 erkanarslan

@erkanarslan I think you can use local notifications for this, I haven't used it but that is my understanding.

Daxito avatar Mar 02 '16 04:03 Daxito

I wondered if it's possible to create service in Android studio then call the nativescript app?

x4080 avatar Mar 02 '16 06:03 x4080