Hey,
I just tried the example of the vibration support.
(https://www.defold.com/community/projects/83131/)
But with my OnePlus One I just get “Can’t vibrate” as output. Can anyone help me?
Hey,
I just tried the example of the vibration support.
(https://www.defold.com/community/projects/83131/)
But with my OnePlus One I just get “Can’t vibrate” as output. Can anyone help me?
Does not work
Could you try using this to test and see if vibrations work on your phone currently? https://play.google.com/store/apps/details?id=org.janniswiehart.vibrator&hl=en_US
Does vibration work for other apps? Might be an issue specific to the phone/version of the OS.
It works with the test app. In other apps it works too.
If you run the example in the project I linked it doesn’t work though?
Can you post the logs for it?
There are no errors shown. It just doesnt work.
INFO:ENGINE: Defold Engine 1.2.138 (cd250cd)
INFO:ENGINE: Loading data from: http://192.168.0.102:56380/build
INFO:ENGINE: Initialised sound device 'default'
Can you bundle the apk as debug, put it on your phone, and use logcat to check the logs?
I will try. Never used it before.
Test to see first if the bundled debug apk works for vibration.
If i bundle, the vibration works. If i just build, i get no vibration.
10-22 12:13:06.107 10932 10953 V threaded_app: New input event: type=2
10-22 12:13:06.122 10932 10953 V threaded_app: New input event: type=2
10-22 12:13:06.138 10932 10953 V threaded_app: New input event: type=2
10-22 12:13:06.153 10932 10953 V threaded_app: New input event: type=2
10-22 12:13:06.169 10932 10953 V threaded_app: New input event: type=2
10-22 12:13:06.450 10953 10953 W NativeThread: type=1400 audit(0.0:15229): avc: denied { ioctl } for path="socket:[14092541]" dev="sockfs" ino=14092541 ioctlcmd=8927 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:r:untrusted_app:s0:c512,c768 tclass=udp_socket permissive=0
I get this, if i touch the screen, with build app.
Are you running a dev-app on your phone and building and running against that? If so you need to fire up a runtime on your device that includes the extension and build and run against that. The dev app that you can download from us does not include any extensions.
I only downloaded the dmengine from you. I guess i understand the problem
Thanks for the fast help.
No problem. You can use any build as dev-app. Just build an apk locally and use it as target from the editor.
Is there a tutorial/manual about this?
No, any debug Defold engine you run on your local network should show up in the “Project > Target” menu. Select it and build and run. The engine will restart with the new build sent from the editor.