[OutSystems Now] Mac address

[OutSystems Now] Mac address

  
Forge Component
(35)
Published on 2017-05-04 by OutSystems R&D
35 votes
Published on 2017-05-04 by OutSystems R&D
Is it possible to get the WiFi mac address from the OutsystemsNow App?
Kolbrun Fanngeirsdottir wrote:
Is it possible to get the WiFi mac address from the OutsystemsNow App?
 I don't think it's allowed for apps to read this information from the device. What is the purpose of the information? Do you want to ID the device?
 
Thanks for the reply. The purpose is to locate where the user is in a building when he performs certain actions in the app. I can't use GPS because its a building with many floors. 
So you probably need his IPaddress instead of MAC address... Don't know if there is a function where you can find it...
MAC Address won't help you locate anyone - it's the ID of the device regardless of it's location.  You need IP address but in the situation you describe that will likely not be good enough, depending on whether the device is using cellular or wi-fi.  If cellular, no have no chance of getting anything better then what GPS gives you beause the cell location is a fairly broad area.  On wi-fi it will depend on the network topology within the building.  If the wi-fi has been set up as a separate router for each floor than you MIGHT be able to do what you want, otherwise no. I believe the ardoHTTP component can get you the IP address but given these issues is probably not worth it.

The bottom line is that if your application is dependent on the exact location, including the floor, it will never work reliably enough to be of value in my opinion.

Sorry for the bad news,
Curt
Maybe with some iBeacons ? :)

Curt Raddatz wrote:

MAC Address won't help you locate anyone - it's the ID of the device regardless of it's location.  You need IP address but in the situation you describe that will likely not be good enough, depending on whether the device is using cellular or wi-fi.  If cellular, no have no chance of getting anything better then what GPS gives you beause the cell location is a fairly broad area.  On wi-fi it will depend on the network topology within the building.  If the wi-fi has been set up as a separate router for each floor than you MIGHT be able to do what you want, otherwise no. I believe the ardoHTTP component can get you the IP address but given these issues is probably not worth it.

The bottom line is that if your application is dependent on the exact location, including the floor, it will never work reliably enough to be of value in my opinion.

Sorry for the bad news,
Curt

Hi Curt,

I read this post because I am too looking for a Get MacAddress's routine. But my need is to don't allow some users to use the application out of the enterprise neither by smartphone. Then, one of possibility would be register the maccadress with the profile user, and check this after login.

Thanks,

Roberto 


As stated in my previous post, I don’t know any way that a user application could get a MAC address.  I can’t think if any completely effective way of doing what you want. 


Curt

I see Curt. And the same with the machine serial number?

Roberto

Hi, I have done this before.

Yes you can get wifi mac address. 

I used wifi mac address to locate user's position inside building with the help of a bunch of Cisco Meraki wifi access point.

Cisco Meraki will scan all devices nearby with wifi ON (even if device not connected to access point), record device wifi mac address and signal strengh.

After that, all of scanning data will be sent to Meraki Cloud and processed. Meraki Cloud will triangulate device wifi signal with all of access points scanning data. 

In the end, I got data with mac address, latitude, longitude, apFloor (configure in each access point) and some other useful info like the brand of device, their wifi chip brand, etc. 

Let me have few minutes to dig my old project, how do I acquired wifi mac address. 

Hi, I used this little plugin my colleague made for me.

It's a cordova plugin, you need to publish it first (it will saved under Independent Modules).

Add it as dependency in your app, then you can call getMacAddress client action from this plugin.

However, this will not work in Outsystems Now.

You have to generate native APK for android or IPA for iphone.

I suggest you test using Android device first, because it's easier to generate APK and test it.

Dear Harlin,

Thank you very much by your help. I will follow the recomendations. I have a question: this solution works in a web application ?

Best Regards,

Roberto


No, it's for mobile app only.