I need a mobile plugin or JS that can check if the user has the mobile network on or off? I tried using Device dianostic but it only worked on IOS
Hello Willian Telatin,
Try the GetNetworkStatus client action from OutsysemsUI.
Hope it helps!
Paulo Rosário
Hi Willian,
GetNetworkStatus() action returns true if the device is connected to any network (Wi-fi, 3G, 4G, etc).
For more options you can check this topic:
https://www.outsystems.com/forums/discussion/56001/network-status-detection/
Regards
Hello, this form is not what I need, I want to check if his mobile network is on, in this case that passed I check if he is connected, but it can happen that his mobile network is on and he is not connected.
You mean active in the app or the mobile phone active?
if his mobile network is active on the cell phone
that's what GetNetworkStatus does, if he's off it returns False
Não é disso que preciso, quero verificar se a rede móvel está ligada ou não, pois a rede pode estar ligada e não tem internet, nesse caso retornará false, mas não retornará para mim se o usuário tiver a rede móvel ligada ou não
OK, this component suits you then
https://www.outsystems.com/forge/component-overview/3303/offlinedetection
Hi Jose, I needed something like this
needed an implementation of this plugin, that works on android, in new versions and in old ones
It looks simple to implement with a cordova plugin. You can learn how to do it.
Here's some articles on how to do it.
https://success.outsystems.com/Documentation/11/Extensibility_and_Integration/Mobile_Plugins/Using_Cordova_Plugins
https://www.outsystems.com/blog/posts/how-to-create-a-cordova-plugin-from-scratch/
I tried to implement it a while ago but I couldn't, could you help me?
Keep this conversation in english for everyone who wants to follow it.
where did you get so far?
it's like this
Your URL needs a .git in the end:
https://github.com/wizpanda/cordova-plugin-mobile-data.git
mas e o código JS que enviei no anexo, como ficaria?
I think you don't need the cordova.plugins string.
como seria o código? Eu não entendo? eu preciso de parâmetro de saída?
English please.
Yes, you need an output parameter with the outcome of the function.
what would the code look like?
Would you help me?
It may take a while to test and fix it.
You can search and learn from tutorials how to use cordova plugins, check this one:
https://www.youtube.com/watch?v=R75ZVmbdCRg
did you get something?
did you try the combination of this 2 ?I believe the GetNetworkType returns 4g/5g when the user is using Mobile data ,And GetNetworkStatus returns if the user is online or offline
I need to know if his mobile network is connected on the cell phone