How to get the MAC address --hybrid app - ibm-mobilefirst

We have a hybrid apps and would like to track users clicks and need to identified unauthenticated users..
I am thinking about using the MAC id but it's seems to be deprecated in ios7..
However, I see that MobileFirst has an option to get a device id using
WL.Device.getID()
Please advise if this option would work to get a unique ID or if there is a method to get the MAC id..
Thanks for your help

I don't know what is your MobileFirst version, but for this exact need you can use the Operational Analytics feature provided by IBM MobileFirst with its API, that allows you custom tracking... See here: http://www-01.ibm.com/support/knowledgecenter/SSHS8R_7.1.0/com.ibm.worklight.monitor.doc/monitor/c_op_analytics_overview.html?lang=en

Related

Limited devices Login's like Netflix

I am trying to build a video streaming platform and I need to implement a limited devices login feature just like netflix. I have seen some people using node device detector to get the device type from the useragent, but I don't think this is a good solution since the user agent can be faked. Please any ideas on how to effectively implement this?
Found a solution to my own answer, I can use fingerprint.js to identify devices and store in mongodb. and I found an open source version for fingerprint.js that is broprint.js

How to map DeviceID to human readable parameters like client name?

I want to disable device or find logs for particular client. How could I find out what deviceID associated with particular client?
I use Android native and iOS native
-Thanks in advance
You haven't specified what kind of client-side technology you are using, but assuming hybrid, MFP provides client-side APIs for getting hold of a device ID, e.g. getID() in the JavaScript API.
With device access management feature, you can see device Id mapped to a user Id in the operations console Devices tab. Refer to
https://www-01.ibm.com/support/knowledgecenter/SSHS8R_7.0.0/com.ibm.worklight.monitor.doc/monitor/c_device_access_mgmt.html

Detect a user's current song in Spotify api

I was wondering if it was possible to detect what song a user is listening to from his/her current active device via the spotify web api.
Thanks.
I know this is an old question, but there is a new beta API endpoint available that supplies this information. It does have some bugs that I've noticed though.
Stations only: If you change stations, you have to restart Spotify to get the API endpoint to update and continue updating.
According to bug reports, it lags behind 20 to 30 minutes at random. I haven't had that problem, so it may be fixed.
GET https://api.spotify.com/v1/me/player/currently-playing
Docs: https://developer.spotify.com/web-api/get-the-users-currently-playing-track/
This is not possible using the web API. If you're writing a Mac app, you can use the Spotify Desktop Client's AppleScript API to access the current track. If the user is scribbling to Last.fm, you can use Last.fm's APIs. Otherwise, this data is not accessible.

Is it possible to access text message information through iPhone SDK

I am developing an application where in i want to alert the user if he receives a message from a contact.
I have been struggling for the same yet haven't found any solution to this.
I also wanted to know if the sdk 3.0 allows access to the call history..
There is no access to SMS messages from the application sandbox, and there is no access to call logs from the application sandbox. You can file a feature request with Apple, but I doubt you will see changes to this any time soon. You will not be able to provide any functionality in your app that depends on this information.
Similar question here regarding call history:
Reading call history in iPhone OS
Short answer is, not possible. I do not believe this has changed in 3.0.

Set Appointment using iPhone SDK

I know you can access the Contact Store from the SDk, but is it possible to create and read appointment data?
This is currently not accessable through the 2.x SDK.
If this is something you need you should go to http://bugreport.apple.com/ and signin with your developer account and write a feature request. It will most likely be marked as a duplicate but Apple tracks duplicates and the more requests for something the higher it moves on their radar.