The keyboard height issue (revisited)

Cool! Supports android and ios?

Yep, I updated sample.

I purchased the plugin! I will use it. Thank you so much!

Last Updated Plugin Jun 06, 2017

When will the update?

It should be updated

https://bitbucket.org/coronalabs/store-hosted-moreinfo/rss?token=fbbca9f0dc8180e91caefd39dac5f37f

That date is when I lasted updated the listing, not the product.

attempt to call field ‘getKeyboardSize’ (a nil value)

Other plugin functions work

Everything was refreshed. but!

type(moreInfo.getKeyboardSize()) 

 return type is number

From Documentation:

returns width(number) , height(number) 

How to get the Width and Height of the keyboard?

Sorry for late response.

local keyboardWidth, keyboardHeight = moreInfo.getKeyboardSize() 

should work, you need to test on android or ios device. I am updating sample to make an error not appear in the simulator.

note sample and Lua stubs are fixes

Thank you so much! This works for ios. This does not work for Android :frowning: For iOS, the height indicates when the keyboard is already hidden.It would be nice if the height was shown only when the keyboard is shown or to make the function of determining the keyboard state. If the height is greater than 0, then the keyboard is shown, if it is 0, then The keyboard is hidden.

For Android and iOS

CoronaWindowMovesWhenKeyboardAppears = true

Another request - can I make a setting to turn off the Bluetooth permission request for iOS

This should be fixed, please wait an hour. Added the abilty to turn off bluetooh checking

moreInfo.init(disableBluetoothChecking)

 

disableBluetoothChecking(boolean) (iOS only)

Thank you so much! I will wait for the fix.

It has been three hours, changes should be implemented

Now the Android works, but iOS does not work :frowning:

Permission for a bluetooth is no asked. Thanks for this!)

The android shows the wrong height of the keyboard when the keyboard is hidden. At me for example 615px when the keyboard is hidden and 393px when the keyboard is shown.

Yeah the keyboard height and width only works when keyboard is shown. There is a problem with end events on iOS and android. I patched iOS bug.

Edit: so that’s why I cannot set values 0, native textboxes and test fields have event listeners so I recommend that. I don’t know exactly why the keyboard hide phase is not working in native code.

Thank you so much! Now works for Android and IOS. All perfectly!

And can I not ask for permission when installing on Android with disableBluetoothChecking = false? I’m sorry that I did not write about it at once.

Bluetooth permission removed.  

Thank you!  :slight_smile: