Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Vibrator
Started by Michael W. Sep 15 2015 02:42 PM

38 replies to this topic
release android ios
[TOPIC CONTROLS]
Page 2 of 2 1 2
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#26

runewinse

[GLOBAL: userInfoPane.html]
runewinse
  • Contributor

  • 485 posts
  • Corona SDK

Hi,

 

I've just tried again. With 2980. Deauthorized and logged in again to be sure to get the latest version of the plugin.

 

Unfortunately I still get a linker error (log attached).

Attached Files



[TOPIC: post.html]
#27

Lerg

[GLOBAL: userInfoPane.html]
Lerg
  • Contributor

  • 533 posts
  • Corona Staff

runewinse, thanks, I'll fix soon.



[TOPIC: post.html]
#28

Lerg

[GLOBAL: userInfoPane.html]
Lerg
  • Contributor

  • 533 posts
  • Corona Staff

runewinse, please try now.



[TOPIC: post.html]
#29

runewinse

[GLOBAL: userInfoPane.html]
runewinse
  • Contributor

  • 485 posts
  • Corona SDK

Lerg, now it seems to link ok! Haven't tried if the vibrator functionality works though... But I will, when I get my hands on some iOS devices.

 

Thanks!



[TOPIC: post.html]
#30

runewinse

[GLOBAL: userInfoPane.html]
runewinse
  • Contributor

  • 485 posts
  • Corona SDK

Hmm.. I'm getting the same linking error again. Is it somehow related to the recent fixes in texttospeech?

 

Corona SDk 2987, and Sierra MacOS



[TOPIC: post.html]
#31

Lerg

[GLOBAL: userInfoPane.html]
Lerg
  • Contributor

  • 533 posts
  • Corona Staff

runewinse, yes! Will fix asap.



[TOPIC: post.html]
#32

Lerg

[GLOBAL: userInfoPane.html]
Lerg
  • Contributor

  • 533 posts
  • Corona Staff

Fixed, please test.



[TOPIC: post.html]
#33

runewinse

[GLOBAL: userInfoPane.html]
runewinse
  • Contributor

  • 485 posts
  • Corona SDK

Fixed, please test.

 

Tested ok. Thanks!



[TOPIC: post.html]
#34

bgmadclown

[GLOBAL: userInfoPane.html]
bgmadclown
  • Contributor

  • 703 posts
  • Corona SDK

Hi Lerg!

 

I'm thinking about using the plugin but just wanted to know what happens if I call .vibrate() on a device that can't vibrate. Does the plugin handle those situations without additional measure like .hasVibrator()?

 

Also, I'm curious if those functions could be used like haptic feedback on Android devices if I keep the duration short?


Edited by bgmadclown, 05 November 2018 - 04:55 AM.


[TOPIC: post.html]
#35

Lerg

[GLOBAL: userInfoPane.html]
Lerg
  • Contributor

  • 533 posts
  • Corona Staff

Hi!
It won't vibrate if you call .vibrate() on a non supported device.

The minimal duration and it's feel highly depends on the device, generally I wouldn't recommend using vibration for haptic feedback.



[TOPIC: post.html]
#36

bgmadclown

[GLOBAL: userInfoPane.html]
bgmadclown
  • Contributor

  • 703 posts
  • Corona SDK

Just to be sure, it won't cause a runtime error or anything that would break the game, right?



[TOPIC: post.html]
#37

philipp3

[GLOBAL: userInfoPane.html]
philipp3
  • Enthusiast

  • 73 posts
  • Corona SDK

Just to be sure, it won't cause a runtime error or anything that would break the game, right?

 

It didn’t break my game, but you should check vibrator.hasVibrator() nevertheless

 

 

- - -

 

 

Some of my players (very, very small percentage) get the following message:

 

Runtime Error

java.lang.NullPointerException: Attempt to read from field 'android.os.VibrationEffect com.android.server.Vibrator Service$Vibration.mEffect' on a null object reference

 

I don’t really know what that message wants to tell me, as I am just calling "vibrator.vibrate(int between 1 and 10)"

And I know that these players have already had a few vibrations, so it should work in general.



[TOPIC: post.html]
#38

Lerg

[GLOBAL: userInfoPane.html]
Lerg
  • Contributor

  • 533 posts
  • Corona Staff

Updated the plugin with a fix for Android 8.0 crash. Please update your apps.

 

Google deprecated a method I was using and apparently broke it.



[TOPIC: post.html]
#39

gamebit.labs

[GLOBAL: userInfoPane.html]
gamebit.labs
  • Contributor

  • 177 posts
  • Corona SDK

Congrats on the release Lerg!




[topic_controls]
Page 2 of 2 1 2
 
[/topic_controls]

Also tagged with one or more of these keywords: release, android, ios