Quick Links: Download Gideros Studio | Gideros Documentation | Gideros Development Center | Gideros community chat | DONATE
Airplane mode android? — Gideros Forum

Airplane mode android?

Is it possible to handle the phone state from a gideros app?
I would need to put in my app a shortcut to airplane mode on/off and check it's state (on or off).
I think a plugin is needed but I don't have a clue on where to start writing it.. maybe there already is a simple trick I am not aware of? :)

Thank you


  • talistalis Guru
    edited August 2018
    It will not be a perfect solution but you can use a GET request to any big website like google.com or apple.com, if event.isError then it means no internet and either airplane mode is active either no internet. I don't know another tricky method for now without a plugin.

    Likes: pie

    +1 -1 (+1 / -0 )Share on Facebook
  • In addition to checking internet you can also check geolocation and combine them together. So it can be more correct airplane_mode= no internet and no geolocation.

    Likes: pie

    +1 -1 (+1 / -0 )Share on Facebook
Sign In or Register to comment.