23
GEOFENCING LOWLANDS WPDEV 2014 JOOST VAN SCHAIK 18-10-2014 CARPE TERRA

Geofencing

Embed Size (px)

DESCRIPTION

Presentation (in Dutch) about geofencing in Windows Phone 8.1 and Windows 8

Citation preview

Page 1: Geofencing

GEOFENCINGLOWLANDS WPDEV 2014

JOOST VAN SCHAIK

18-10-2014

CARPE TERRA

Page 2: Geofencing

AGENDA

• Hello world / Plugs en andere blabla

• Wat

• Waarom

• Hoe (Foreground en Background)

• Lessons learned

• Q&A

Page 3: Geofencing

HELLO

• Joost van Schaik aka LocalJoost

• Dotnetbyexample

• Windows Platform Development MVP

• 4 open sources libraries, 1 nog actief

• [insert fancy title of the day] @ Vicrea Solutions

• Web development / Geo-ict

Page 4: Geofencing
Page 5: Geofencing
Page 6: Geofencing
Page 7: Geofencing

</COMMERCIALS></PLUGS>

Page 8: Geofencing

WAT IS GEOFENCING?

“Geofencing is a technology that defines a virtual boundary around a real-world geographical area. In doing so, a radius of interest is established that can trigger an action in a geo-enabled phone or other portable electronic device.”

Thus speaketh Technopedia

http://www.techopedia.com/definition/14937/geofencing

Page 9: Geofencing

WAAROM

• Notificatie als je ergens in de buurt komt

• Of als je weggaat

• Of als iemand anders (je kind b.v.) ergens in de buurt komt

Page 10: Geofencing

NIEUW

Page 11: Geofencing

GEOFENCING

• … al een tijdje in Windows 8.x

• … maar wel nieuw in Windows Phone!

• … PCL/Universal apps.

Page 12: Geofencing

TWEE MANIEREN

• Foreground (in actieve app)

• Scenario : wat is hier nu, poor mans’ ‘sathé prikke prikker gis’

• Background task

• Waarschuw me wanneer ik in de buurt ben

Page 13: Geofencing

DEMO 1 – SHOP FINDER

Page 14: Geofencing

LESSONS LEARNED (1)

• Capabilities/Location

• Application/Toast capable

• Dwell time! (default 10s)

• Alleen cirkels

Page 15: Geofencing

LESSONS LEARNED (2)

• Kaart voor Windows 8 ->Bing Maps SDK, Native, x64

• Toast notifications in foreground process – beter van niet

• Toast notifications op Windows simulator – überhaupt niet

• Windows Phone emulator superieur aan Windows emulator.

• Partial classes: (nog meer) code sharing

Page 16: Geofencing

DEMO 2 – SHOP FINDER

Page 17: Geofencing

RECAP TESTEN GEOTRIGGERS OP WINDOWS

1. Deploy local

2. Register task

3. Deploy to simulator

4. Maak geofences

5. Zet simulator locatie

6. Enable toolbar debug/location

7. Selecteer background taks in lifecycle events dropdown

8. Background taks activated – één keer.

Page 18: Geofencing

WAAROM ZO MOEILIJK?

Page 19: Geofencing

LESSONS LEARNED

• Registratie background task iha

• Background task in WinRt component

• Sealed classes, IAsyncOperation<T> ipv Task<T>

• LocationTrigger background tasks : max 1 x per 2 minuten

• Badge logo voor Windows

• Niet zo geschikt voor high-speed, real-time tracking kleine gebieden

• Demonstreren geofencing trigger = tricky business

Page 20: Geofencing

TIPS & TRICKS

• Route mode

• Meerdere korte simulaties

• Initiële positie opzetten dan pas geofences

• Verse start per test

• Scheur niet op hoge snelheid door kleine geofences (of hoge dwell time)

Page 21: Geofencing
Page 22: Geofencing

CREDITS / MEER INFO

• http://blog.rajenki.com/2014/04/trigger-background-task-using-geofence-windows-phone-8-1/

• http://blogs.windows.com/buildingapps/2014/05/28/using-the-windows-phone-emulator-for-testing-apps-with-geofencing/

• http://wp.qmatteoq.com/how-to-create-and-debug-a-background-task-in-windows-8-part-2/

• Ook leuk om naar de kijken: SensorCore

Page 23: Geofencing

ALS JE NOG STEEDS NIET GENOEG VAN ME HEBT

http://dotnetbyexample.blogspot.com

@localjoost (80K+ tweets – follow is op eigen risico)

[email protected]

localjoostnl