Absolutely, yes.

you have 2 options for this:

1. you can write a satnav-like solution, similar to TomTom or MapMyRun
or Runkeeper. These stay running in the background and get location
updates as the user moves. The downside is, this chews the battery, so
it's not something the user  might want to have on all the time. I
think there might even be API's for "when you enter this area, do X"

2. you could use significant location change API's. This means you get
called when the user has moved a significant amount - usually between
cell sites. Basically, your app is put to sleep, and woken up when the
change happens. However, apple's version of "significant" is different
to mine. I wanted (for eg) every 100m or even 500m. I ended up getting
2 change events in a 20 min bus ride in London. Thats not enough, even
at slow London traffic speeds :)

Personally, I'd love to have a combination: I want the very accurate
location (which #1 is), but only wake up and tell me every (eg) 5
mins. That would be perfect. But I dont think you can do that.



So yes, what you describe can be done, and of course can be done in
MonoTouch (a usual rule of thumb is: if you can do it Obj-C, you can
do it in MonoTouch, at least with respect to CocoaTouch API's)

The apple docs are good on location change stuff, and I got a copy of
this: 
http://www.amazon.co.uk/IPhone-Application-Development-IOS-QuickStart/dp/0321719689
which has a good section on location-based stuff.

Now, would apple accept this into the appstore? I'm not sure.....
thats a question for Apple :)


On Tue, Aug 23, 2011 at 09:58, Oivvio Polite <[email protected]> wrote:
>
> Like everyone else I'm venturing into mobile app-development coming from a
> background of developing for the desktop and the web.
>
> I have a client who needs location aware notifications in an iOS app.
> I'm trying to settle on a framework for this app, my first real mobile
> project, and monotouch seems like a nice fit.
>
> A user story goes like this: The user is out walking the town. She's got
> her iPhone in her pocket and is listening to music via iTunes. As she
> walks into her local mall my app (running in the background) detects
> that she is in the proximity of a branch of her bank. My app also knows
> that the user has some errand to do at the bank. So my app interrupts
> the currently playing iTunes track, plays a notification sound and puts
> a notification text on the screen, telling the user that there's a bank
> office nearby and that she might want to do that bank errand now.
>
> Could this be done with monotouch?
>
> thanks in advance, Oivvio
>
> --
> http://liberationtech.net
> _______________________________________________
> MonoTouch mailing list
> [email protected]
> http://lists.ximian.com/mailman/listinfo/monotouch
>



-- 
Nic Wise
t.  +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise
b. http://www.fastchicken.co.nz/

mobileAgent (for FreeAgent): get your accounts in your pocket.
http://goo.gl/IuBU
Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa
London Bike App: Find the nearest Boris Bike, and get riding! http://goo.gl/Icp2
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to