Skip to content
This repository has been archived by the owner on Aug 20, 2018. It is now read-only.

Application error + question #22

Open
bitfabrikken opened this issue May 24, 2016 · 3 comments
Open

Application error + question #22

bitfabrikken opened this issue May 24, 2016 · 3 comments

Comments

@bitfabrikken
Copy link

Hi @FokkeZB :)

I was trying to build your app, to see if it gets GPS coordinates when screen is turned off. I haven't figured out yet how to get my apps to work with background data - they stop receiving anything when the app has been in the background for 5-10 seconds. Is this something you've experimented with, and possibly solved?

Anyway, I'm getting an error when the app starts up.
Built for iOS 9.3 with 5.2.2.GA and iPhone 4s simulator.
The error is:
undefined is not a function (evaluating 'require("alloy/moment".locale(Ti.Locale.currentLocale)') at app.js (line 6)

@FokkeZB
Copy link
Owner

FokkeZB commented May 24, 2016

@bitfabrikken this app should continue to collect GPS data in the background. I've used it in the background for 60+ minutes and it was still collecting. Did you set the backgroundMode?

What Alloy version are you compiling with? Are you using ti build or appc run?

@bitfabrikken
Copy link
Author

bitfabrikken commented May 24, 2016

That's weird, I've set both backgroundMode and NSLocationAlwaysUsageDescription.

Re: compiling: I just clicked the Run button in Appcelerator Studio :)

Alloy version says 1.7.6

@FokkeZB
Copy link
Owner

FokkeZB commented May 24, 2016

@bitfabrikken, OK... that's probably the issue. This app requires Alloy 1.9. Use [sudo] npm i -g titanium alloy and build with ti build.

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

No branches or pull requests

2 participants