Question
I'm experiencing issues with PALM_TOUCH event detection in Tizen 3.0. Here's my situation:
- When using
"http://developer.samsung.com/privilege/healthinfo", I get certificate issues during build - When using
"http://tizen.org/privilege/healthinfo", the watch switches to main watchface after palm gesture - If I comment out
webapis.motion.start("PALM_TOUCH", CB);, the palm gesture only turns off the screen without exiting the app - This functionality worked correctly in Tizen 2.3.2
Main Questions:
- Is there any way to detect PALM_TOUCH in Tizen 3.0?
- How can I turn the screen back on after a palm gesture? (tizen.power.request('SCREEN','SCREEN_NORMAL') doesn't seem to work)
Answer
Problem Understanding
The PALM_TOUCH functionality appears to have changed significantly between Tizen 2.3.2 and 3.0. The API references and migration guide don't mention this feature, suggesting it might be deprecated.
Solution Methods
-
API Deprecation Confirmation:
- Check the latest Web API references on Samsung Tizen OS for any mention of PALM_TOUCH
- Review the migration guide for any changes in gesture handling
-
Alternative Approaches:
- Consider using other available gesture APIs if PALM_TOUCH is indeed deprecated
- For screen control, try using the Power API with different parameters
-
Workarounds:
- If you need to turn the screen back on, experiment with different Power API methods
- Consider implementing custom gesture detection if the built-in functionality is no longer available
Code Examples
For screen control (if PALM_TOUCH is not available):
try {
tizen.power.request('SCREEN', 'SCREEN_NORMAL');
} catch (e) {
console.log("Error in power request: " + e.message);
}
Additional Tips
- Always check the latest API documentation on Samsung Tizen OS for the most current information
- When migrating from Tizen 2.3.2 to 3.0, thoroughly test all gesture-related functionality
- Consider reaching out to Samsung Developer Support for clarification on deprecated features