Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto start service #35

Open
StasDoskalenko opened this issue Mar 4, 2016 · 10 comments
Open

Auto start service #35

StasDoskalenko opened this issue Mar 4, 2016 · 10 comments

Comments

@StasDoskalenko
Copy link

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?

@tananaev
Copy link
Member

tananaev commented Mar 4, 2016

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.

@tacman
Copy link

tacman commented Mar 17, 2016

Is this the only way to do that?

@tananaev
Copy link
Member

Yes, it is the only way.

@tacman
Copy link

tacman commented Mar 17, 2016

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

@tananaev
Copy link
Member

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

@tacman
Copy link

tacman commented Mar 17, 2016

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?

@tananaev
Copy link
Member

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

@StasDoskalenko
Copy link
Author

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? :)

@tananaev
Copy link
Member

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

@StasDoskalenko
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants