traccar-client-ios icon indicating copy to clipboard operation
traccar-client-ios copied to clipboard

Auto start service

Open StasDoskalenko opened this issue 9 years ago • 10 comments

Hi! I have jailbreaked devices. and I need to automatically start service. Don't u know how can I modify this app, or make some tweak for cydia to do that on my device? :) Or maybe I can modify deployed app to do that?

StasDoskalenko avatar Mar 04 '16 16:03 StasDoskalenko

You can use voip background mode. Here is a quote from Apple documentation:

The app provides Voice-over-IP services. Apps with this key are automatically launched after system boot so that the app can reestablish VoIP services. Apps with this key are also allowed to play background audio.

tananaev avatar Mar 04 '16 21:03 tananaev

Is this the only way to do that?

tacman avatar Mar 17 '16 13:03 tacman

Yes, it is the only way.

tananaev avatar Mar 17 '16 18:03 tananaev

How about significant location change? That's also a valid background / auto-launch, right?

tacman avatar Mar 17 '16 19:03 tacman

Background location updates mode doesn't auto-start an app.

tananaev avatar Mar 17 '16 19:03 tananaev

If the app is running in the background and the phone is rebooted, you have to manually re-open the app and start the service? I thought in the past this ran continuously. Am I misunderstanding something?

tacman avatar Mar 17 '16 19:03 tacman

Yes, you have to re-open the app. Only Traccar Client for Android has auto-start option.

tananaev avatar Mar 17 '16 19:03 tananaev

So the only reason is Apple politics about privacy? Technically for personal use do I just have to enable "voip" background mode to the main plist to add? And then launch self.trackingController = [[TCTrackingController alloc] init]; [self.trackingController start];

From for example - (void)viewDidAppear

What do you think about that? :)

StasDoskalenko avatar Apr 12 '16 06:04 StasDoskalenko

I guess you can do it for your own developer build, but it will never be approved for the App Store.

tananaev avatar Apr 12 '16 06:04 tananaev

Okay thanks! Yes it's just for my personal use.

StasDoskalenko avatar Apr 12 '16 06:04 StasDoskalenko