Hi, I have two things I’m stuck with when I’m developing my app. I have not found any really good documentation for how I do this.
- I try to do a function. When the user shakes his/her phone, to make an API call. The problem is that I can’t find so much written about how to do such a shake function.
- The second thing I want to do is to move an icon back and forth on the screen to indicate that you can shake the phone to make the API call in the first problem I listed. Same here I find nothing where it says how I do it.
To clarify, you’re trying to detect if the device is being shaken? There’s no pre-made function for that in Fuse as far as I know, but the community has been working on one: https://www.fusetools.com/community/forums/show_and_tell/shake_detection?page=1&highlight=65344b44-3fd4-4dd3-8cc3-9c11ea0c73ac#post-65344b44-3fd4-4dd3-8cc3-9c11ea0c73ac — it might be worth asking the author if he is willing to share his work.
For the movement of the icon, you should take a look at the docs: https://www.fusetools.com/docs/fuse/animations/animator — it sounds to me like what you’re after is a simple
Move animation, or perhaps a
Thank you Bent, regarding the first link you sent, I’ve tried to contact the developer for a few weeks without getting a response.