Get device playback information - chatbot

Is it possible to get the information about the current media being played?
For instance, if a song is currently playing on the device (for instance the phone), can one get the information of the song? The name, duration, current position etc?
Thanks

You cannot get this information using Actions on Google, but within Android there are ways you can read the user's notifications or register a broadcast receiver and handle different music apps like in Spotify.

Related

Requesting list of a users microhone and headset & phone devices

The audio, video conferencing devices, microhones headset and other devices which are used for microsoft team calls and conferences, where are thisdata is stored?
How can I request a list for this devices overall users or for a special user. Is an intune -license needed for that or are there other ways to request this information e.g. with a graph api call?
Updated 04.10.2021:
I know it is possible to get call records after end calls and from this i get the device informations. That is not my question.
I would know if there is a possibility to request the devivices a user has connected in the past.
So is there a way to get the infos of connected audio, video devices independend from a ended call.
Because i have no available intune license , i don't know if intune only manage client devices or other devices like audio and video devices too. so that was the reason I mention intune.
But my question is:
Is there a way with graph api or different api to get the connected or registered audio video devices on azure for a user identified with UPN (not locally with running command line tools for requesting audio video devices from the locally device manager).
As per my knowledge, we do not have such API available to get the list of devices, using which user has connected in the past.

Custom Length Vibrations For Notifications in Swift

I am developing an app that sends vibrations to a users phone based on how long the user trying to reach them holds down a button. However, it has to work when the users app is not open. Is there a way to attach custom haptics to a notification to achieve this? I was also thinking that generating user feedback haptics locally when a message is received would work but I need it to work when the user is not using the app. Any suggestions?
This feature isn't available to the Firebase FCM library and would require the vibration settings configured on a per device basis.

Can the Facebook API give location of user on mobile device?

I've found that it's easy to obtain 'current location' of Facebook users based on what they manually enter in on their profile. However, I'm curious if a Facebook user logs into my app with their FB log-in, can I get their location data as they go from one place to the next? For example, my app recommends the user go to a certain location. I want to know if that user actually goes to that location. I don't need to know their location down to the minute, just periodically where they end up, maybe every half hour or hour.
No, this is not possible via the Graph API or SDK. You could track the GPS location via the device's sensor data if you're creating an own app for iOS or Android for example.

Apple iTunes Affiliate Program - Song link metadata?

I have an app that plays music from the user's iTunes library on the device. Without going into the details of the "Whys" behind what I am doing, I just need to know how to automatically get the iTunes store link from each song. So in the app, I will show a song list. I want a "Download" button next to each song. When the user presses that button it opens up the song in iTunes to be purchased. Is there a way to dynamically find the links to those songs, or do the links have to be pre-programmed into the app?
I was hoping any official iTunes music would have an iTunes download link/other useful meta data associated with it.
Again these songs are never the same on all devices because they are coming from the users library.
Maybe there is some search function I can do?
It is not exactly automatically (though for the user it will be), but with the title of the track you could search it using the iTunes Store Web Service Search API.
This will return a JSON response with the link to the song in the iTunes store (along with some other useful metadata).
I've got his same problem. Considering using EchoNest to actually identify a track from its audio content, then using the returned values (title, album, etc.) from EN to query iTunes API for the track in the Store.
This is based on the assumption that the user's track metadata is not reliable, and has the added benefit that you can fill in any missing data that the user may not have (eg. album art)
Any other ideas?

iphone friends location app

What kind of api does SDK provide if we are to develop an app which keeps tracks of friends location?
Update:
CoreLocation gets the device location with the app running. But how to get the friends location data if you have their phone number.
Does anyone have idea to get the location data of friends using iphone sdk
I'm guessing you mean something like Core Location framework? This still would only be able to track the device location with the app running. You would have to pass your friends location data to a server and fetch it from there to be able to track them on any device.
http://developer.apple.com/iphone/library/documentation/CoreLocation/Reference/CoreLocation_Framework/index.html
I would be surprised if Apple let any old app communicate with another iPhone to determine that iPhone's location. You'll probably have to maintain a database of locations that syncs with your app from time to time. Anyone using that app will then be able to access their friends' locations.