Vibration Feature - Apt3kStudio/Phone GitHub Wiki
Feature Document
The purpose of this feature is for the phone to Vibrate when the phone and watch goes out of the assigned range, in order to locate the phone.
The vibrate event should be handle using Xamarin essentials library.
The watch to phone vibration event is divided into 3 different approaches:
-
Via the Internet - The web application will initiate the vibration event by sending a command to the phone via the internet. The phone will then use this command to initiate a predefined event.
-
Via Bluetooth - The watch application will initiate the vibration event by sending a command to the phone via Bluetooth. The phone will then use this command to initiate a predefined event.
-
Via NFC - The watch application will initiate the vibration event by sending a command to the phone via NFC. The phone will then use this command to initiate a predefined event.
Versions
v1.0 : Make the phone Vibrate
v2.0 : Add 3 Vibration Levels
- Level 1 - Soft Vibration
- Level 2 - Medium Vibration
- Level 3 - Strong Vibration
Features Specification
Development & Implementation Phases
Phase 1: Phone implementation.
Phase 2: Watch to Phone implementation
Phase 3: Web API implementation
Development requirement
1. Android Project
a. Configured android project’s required permissions: Phase 1
2. Xamarin shared project
b. Create listeners to handle the Watch request: Phase 2
d. Create an event View Model: Phase 1
3. Testing
e. On the Alert page create a button to test Vibrate feature: Phase 1
f. Add a click event to the button and defined the connection to the Event View Model: Phase 1
g. The Event View Model should contain a function that calls the Xamarin essentials API’s vibrate feature: Phase 1
4. Web API
h. Create an event table on the Web API project: Phase 3
i. Create an event controller: Phase 3
j. Create a getDefaultEvents: Phase 3