More Info

More Info

 

View and activate on the Corona Store

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.

Documentation

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?

sorry just seeing this, will look into this

fixed, please check update which should be on processed on corona servers in under an hour

Will do i will check it thanks for the quick reply

Important breaking change

Please note mute check now uses an event to check for mute. See docs for more details (also example is updated) 

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.

dropped? crashes? Can you give a little more detail?

Yes, it crashes. It crashes when the text field gets the focus and the keyboard starts showing up.

This should be fixed, try again in an hour. I am going to bed. Respond if it still not working.

I noticed that when initialising the plugin it asks the user to allow access to bluetooth… even though i am only using the isMuted functionality. 

moreInfo.init(true);

@awkaw

Thanks. I didn’t notice that option.

New update:

moreInfo.getSettingFontSize()

This new api allows you get font size preference from the settings app. 

Read more on updated docs https://scotth.tech/plugin-moreInfo

(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 

Patched

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:

android = {

coronaWindowMovesWhenKeyboardAppears = true

}

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. 

I just let the timer running whenever my screen has textfield. Thanks! It helps a lot!