Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

More Info
Started by Scott Harrison Oct 16 2016 07:13 PM

19 replies to this topic
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

Scott Harrison

[GLOBAL: userInfoPane.html]
Scott Harrison
  • Corona Geek

  • 1,769 posts
  • Enterprise

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


[TOPIC: post.html]
#2

mesozoicgames

[GLOBAL: userInfoPane.html]
mesozoicgames
  • Observer

  • 4 posts
  • Corona SDK

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?



[TOPIC: post.html]
#3

Scott Harrison

[GLOBAL: userInfoPane.html]
Scott Harrison
  • Corona Geek

  • 1,769 posts
  • Enterprise

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



[TOPIC: post.html]
#4

Scott Harrison

[GLOBAL: userInfoPane.html]
Scott Harrison
  • Corona Geek

  • 1,769 posts
  • Enterprise

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


  • mesozoicgames likes this

[TOPIC: post.html]
#5

mesozoicgames

[GLOBAL: userInfoPane.html]
mesozoicgames
  • Observer

  • 4 posts
  • Corona SDK

Will do i will check it thanks for the quick reply

[TOPIC: post.html]
#6

Scott Harrison

[GLOBAL: userInfoPane.html]
Scott Harrison
  • Corona Geek

  • 1,769 posts
  • Enterprise

Important breaking change

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



[TOPIC: post.html]
#7

awkaw

[GLOBAL: userInfoPane.html]
awkaw
  • Enthusiast

  • 41 posts
  • Corona SDK

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.



[TOPIC: post.html]
#8

Scott Harrison

[GLOBAL: userInfoPane.html]
Scott Harrison
  • Corona Geek

  • 1,769 posts
  • Enterprise

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?



[TOPIC: post.html]
#9

awkaw

[GLOBAL: userInfoPane.html]
awkaw
  • Enthusiast

  • 41 posts
  • Corona SDK

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



[TOPIC: post.html]
#10

Scott Harrison

[GLOBAL: userInfoPane.html]
Scott Harrison
  • Corona Geek

  • 1,769 posts
  • Enterprise

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.



[TOPIC: post.html]
#11

ojnab

[GLOBAL: userInfoPane.html]
ojnab
  • Contributor

  • 539 posts
  • Corona SDK

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. 



[TOPIC: post.html]
#12

awkaw

[GLOBAL: userInfoPane.html]
awkaw
  • Enthusiast

  • 41 posts
  • Corona SDK

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);


[TOPIC: post.html]
#13

ojnab

[GLOBAL: userInfoPane.html]
ojnab
  • Contributor

  • 539 posts
  • Corona SDK

@awkaw

Thanks. I didn't notice that option.



[TOPIC: post.html]
#14

Scott Harrison

[GLOBAL: userInfoPane.html]
Scott Harrison
  • Corona Geek

  • 1,769 posts
  • Enterprise

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


  • dmglakewood likes this

[TOPIC: post.html]
#15

david79

[GLOBAL: userInfoPane.html]
david79
  • Observer

  • 16 posts
  • Corona SDK

(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 



[TOPIC: post.html]
#16

Scott Harrison

[GLOBAL: userInfoPane.html]
Scott Harrison
  • Corona Geek

  • 1,769 posts
  • Enterprise

Patched



[TOPIC: post.html]
#17

apps30

[GLOBAL: userInfoPane.html]
apps30
  • Enthusiast

  • 64 posts
  • Corona SDK

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

}



[TOPIC: post.html]
#18

apps30

[GLOBAL: userInfoPane.html]
apps30
  • Enthusiast

  • 64 posts
  • Corona SDK

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.



[TOPIC: post.html]
#19

Scott Harrison

[GLOBAL: userInfoPane.html]
Scott Harrison
  • Corona Geek

  • 1,769 posts
  • Enterprise

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. 



[TOPIC: post.html]
#20

apps30

[GLOBAL: userInfoPane.html]
apps30
  • Enthusiast

  • 64 posts
  • Corona SDK

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




[topic_controls]
[/topic_controls]