how can i get airplane-mode buy cordova plugin?

688 views
Skip to first unread message

mecjun

unread,
Feb 14, 2016, 10:27:34 PM2/14/16
to phonegap
how can i get airplane-mode buy cordova plugin?

Jesse Monroy

unread,
Feb 16, 2016, 7:06:45 PM2/16/16
to phonegap
@mecjun,
as with anything with Cordova/Phonegap, you need to use a <a href=http://cordova.apache.org/plugins/>plugin</a>.
Currently, there are no plugins that "get" airplace mode.
http://cordova.apache.org/plugins/?q=airplane

Jesse

Steve Sobol - Lobos Studios

unread,
Feb 17, 2016, 10:19:19 AM2/17/16
to phon...@googlegroups.com
Does "get" mean "detect"? What's the benefit of detecting airplane mode? Usually you'll just want to check whether you're online or not.
--
-- You received this message because you are subscribed to the Google
Groups "phonegap" group.
To post to this group, send email to phon...@googlegroups.com
To unsubscribe from this group, send email to
phonegap+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/phonegap?hl=en?hl=en
 
For more info on PhoneGap or to download the code go to www.phonegap.com
---
You received this message because you are subscribed to the Google Groups "phonegap" group.
To unsubscribe from this group and stop receiving emails from it, send an email to phonegap+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

-- 
Lobos Studios | Phone: 877.919.4WEB | LobosStudios.com | Facebook.com/LobosStudios | @LobosStudios
Web Development - Mobile Development - Helpdesk/Tech Support - Computer Sales & Service
Acer Authorized Reseller - Computers, Windows and Android Tablets, Accessories

Steve Sobol - CEO, Senior Developer and Server Jockey
st...@LobosStudios.com

Kim Ras

unread,
Feb 17, 2016, 10:22:31 AM2/17/16
to phonegap
I do not know directly if airplane mode is on , but as an alternative can you look into what Network is used.. 

Nick Fenwick

unread,
Feb 17, 2016, 10:58:07 AM2/17/16
to phonegap
What are you actually trying to detect?  That a mobile or wifi connection is available?

https://www.npmjs.com/package/cordova-connectivity-monitor might help you.  We use a similar feature to show "you are offline" message on our app's Login page, as a hint to the user that their Login attempt will fail.

Nick

Jesse Monroy

unread,
Feb 17, 2016, 6:30:29 PM2/17/16
to phonegap
On Wednesday, February 17, 2016 at 8:19:19 AM UTC-7, Steve Sobol wrote:
Does "get" mean "detect"? What's the benefit of detecting airplane mode? Usually you'll just want to check whether you're online or not.


@Steve,
I'm not sure what this person meant with their question. When the translator used "buy",  I took it to mean "aquire". This of course makes little sense.  "To get and aquire" lead me to believe this person wants to use the "airplane" mode.

Yes, I believe this person is not clear on what features they want to include. I imagine the want to --maybe-- automatically turn on "airplane" mode when the device is somewhere where the device should not receive service - like in court.

Jesse

Reply all
Reply to author
Forward
0 new messages