The MoreInfo plugin allows a developer to access more info on the device such as the battery levels, battery status(charging or not), total storage, how much free storage left, the internet status, or platform name.
android shows some weird stuff. like available space smaller the the free space available looks like it is switched but works fine for ios. Battery also return 0 to 1 for android but returns 0 to 100 for ios. Can you tell me when the fix will be available?
The application is dropped on the iOS when the plugin is connected, when I try to enter text into the text field. With the plug-in disabled, everything is fine.
(I submitted a bugreport to this effect) : when testing on ios11.3 (I only have one device at hand) the sample works when you open the keyboard for the first time, and then the “top” text ends up behind the keyboard
Hi, I am trying to use your plugin to get keyboard height in Android. I tried to call “moreInfo.getKeyboardSize()” after the keyboard show up in Android. But It always return 0 to me.
moreInfo = require “plugin.moreInfo”
moreInfo.init(false)
moreInfo.getKeyboardSize()
I did added “coronaWindowMovesWhenKeyboardAppears” to my build.settings as below:
I found it works now with a timer. It seems the keyboard height value returned with some delay. Even I call the getKeyboardSize() after the keyboard has been shown, it still return 0 to me. However, after I added a timer with unlimited loop, it returns the keyboard height to me.
Have you tried making you’re a timer after the keyboard gets called? I am not an android expert but I thought android keyboards can change will typing can the height could get bigger. That’s why I used a timer with unlimited loop in sample.