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
103
S
37
G
31
Posts: 1,164
Reputation: 28,928

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
73
S
14
G
1
Posts: 152
Reputation: 5,026


Return to How do I....?

Who is online

Users browsing this forum: Baidu [Spider], humanescape, Klarner and 26 guests