How do I set up the vibrate option on the browser object

Get help using Construct 2

Post » Fri Jul 03, 2015 9:40 pm

Hi guys, i want to make an android phone vibrate.

im using the web object to do it, but it doesnt work.

Im exporting to cocoonJS, if anyone knows why is not working i will be very thankful.
B
2
Posts: 1
Reputation: 152

Post » Sat Jul 04, 2015 2:29 pm

Hi,
as far as I know the browser events doesn't work on cocoonJS due canvas+ isn't a complete browser. Maybe it works if you choose WebView+ instead of Canvas+
I know there is a plugin from @cranberrygame for Vibration. This works for Intel XDK and the new CocoonIO, but not for CocoonJS.
Image Image iTunes: Match3 | Google Play: Match3
B
98
S
33
G
30
Posts: 1,117
Reputation: 27,781

Post » Sat Jul 04, 2015 3:55 pm

@haarp, from what I recall, exporting to Android via XDK at least, you need to all the permissions for your app to USE the vibrate function, I found that I needed to specify this in the XDK setup/config even though I had already specified (permitting) it in C2 when exporting.
B
72
S
14
G
1
Posts: 151
Reputation: 4,999


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 28 guests