Upload
joost-van-schaik
View
123
Download
0
Tags:
Embed Size (px)
DESCRIPTION
Presentation (in Dutch) about geofencing in Windows Phone 8.1 and Windows 8
Citation preview
GEOFENCINGLOWLANDS WPDEV 2014
JOOST VAN SCHAIK
18-10-2014
CARPE TERRA
AGENDA
• Hello world / Plugs en andere blabla
• Wat
• Waarom
• Hoe (Foreground en Background)
• Lessons learned
• Q&A
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
</COMMERCIALS></PLUGS>
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
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
NIEUW
GEOFENCING
• … al een tijdje in Windows 8.x
• … maar wel nieuw in Windows Phone!
• … PCL/Universal apps.
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
DEMO 1 – SHOP FINDER
LESSONS LEARNED (1)
• Capabilities/Location
• Application/Toast capable
• Dwell time! (default 10s)
• Alleen cirkels
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
DEMO 2 – SHOP FINDER
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.
WAAROM ZO MOEILIJK?
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
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)
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
ALS JE NOG STEEDS NIET GENOEG VAN ME HEBT
http://dotnetbyexample.blogspot.com
@localjoost (80K+ tweets – follow is op eigen risico)
localjoostnl