iOS - Any way to get another app's now playing song info - ios

5 years ago there was the same question where everybody answered
"No, you can't, it's iOS sandbox", in general, then it was a iOS 5,
but now is 2016 and iOS 9.3 is coming up and the same question:
My app need to know information (tittle, artist, album) about now playing song in system, that means it need to support any player like built-in Apple Music or Spotify, Bandcamp and more. I tried to access by MPMusicPlayerController.nowplayingitem, but it works only with Apple Music app, I tried to call MPNowPlayingInfoCenter, and as I understand, it just let me set some info to Control Centre and lock screen if your app is nowPlaying in iOS, but if not, it returns nil. Is there any way to do this? Swift answers welcome

Related

iOS NowPlayingView in Nativescript (7 / Vue)

Situation
I have a component playing audio in my nativescript app (recently updated to ns 7). Since the app should continue to play audio when it is in the background or the device is locked, I need a way to control the audio. iOS comes with the NowPlayingView.
Problem
Since I can not find a link to this feature in the Nativescript Documentation or a ns plugin for that, I am wondering if and how I could use that feature in my app. I did not yet dig into the "native-land" and was primarly using nativescripts own features. So I do not have any first steps that guide me in the right direction to implement such a feature, if possible at all.
Question
Maybe you could help me with some rough tipps or even some code snippets, if you have already implemented the NowPlayingView?

watchOS Show App When Message Received [duplicate]

I know that an apple watch app can launch its parent application in the background to pass data back and forth but can it work the other way around? Can my iOS app launch the related watchOS app?
For a bit more insight, I'm trying to accomplish this so that I can monitor data periodically for the sake of notifications. The 70 seconds apple gives me to keep an app active and pulling data from healthKit isn't conducive to an app that provides alerts to users based on changes in behavior.
I apologize if this is a basic question. I'm new to watchOS development and haven't been able to find the answer to this anywhere. =/
No it cannot happen.
At the moment communication between the Watch and the Device is limited to the Watch App initialising communication with the iOS app and not the other way around.
This might help:
https://developer.apple.com/library//ios/documentation/General/Conceptual/WatchKitProgrammingGuide/SharingData.html#//apple_ref/doc/uid/TP40014969-CH29-SW1
Yes, you can. Try the startWatchApp(with:completion:) func in HealthStore. However, it can only be used in a workout app that enable the background mode of "workout processing".
Unfortunately I think I found the answer here How to programmatically open Apple Watch companion app from iOS app.
It doesn't look like it can be done. If anyone finds otherwise, let me know!

iOS App Rejected - Metadata Rejected

I just recently submitted my third app to the app store - I have never been asked for a video to demonstrate the functionality of the app. Is this a new requirement? Also, would recording the app functionality on Quicktime (connected to my device) suffice to meet this requirement?
I am sure they get thousands of apps, but I even provided an intro tutorial about the app works - which would be faster than watching a full demo video. Smh
We began the review of your app but are not able to continue because
we need access to a video that demonstrates your app in use on an iOS
device.
You can use Quicktime to record your screen. In my team, we recorded app preview video with Quicktime and it is accepted. Also you can find more information here. And video is required because it gives information to user about your app and Apple says "app preview can help customers better understand your app and encourage more downloads."
What Apple team asks in the review process can be something simpler than an app preview video. They just want a video demonstrating the app, and it will not be used as an app preview in the store.
We had the same issue and after providing them the link to a demo video, the app was accepted.
The video was simple: navigating through the main views of the app, clicking the UI elements, basically presenting the app.

iOS app: access to Music storage allowed? [duplicate]

This question already has answers here:
Add Music to iOS programmatically
(4 answers)
Closed 8 years ago.
From my experience, it seems that most music-app solutions out there try to reinvent the wheel (creating a new player, that the user would need to start using instead of the iOS default one). So I'm wondering: is it because each application has its own way to access/modify the Music data?
In short: can an iOS app add or remove music from the device in order for the default iOS music player to discover the new tracks? If yes, where is the documentation about this?
Thanks
Apps cannot add music to the iOS Music Player. This is so that the only way to get music onto the default phone player is via iTunes. This protects Apple's revenue from music, so you can't blame them really for doing this.
If there was a way, those apps you've seen would use it!

Option to play a notification sound iOS

I wrote an Android application and it had options to choose what system notification sound the user wanted to play for each of the different types of notifications, three in total.
Now I want to write the same application for iOS, but is it possible to do this in iOS, I Googled about this but didn't really find a way on how to do it. Seeing as though iOS 7 is out, have Apple made any changes?
Or is it still restricted, like a million other things?
Choose custom sound for local notifications
This link provides the answer. You can find more detail in the apple doc. "In iOS, an application can specify a sound file along with an alert message or badge number.".
Specifically:
https://developer.apple.com/library/ios/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/Chapters/IPhoneOSClientImp.html#//apple_ref/doc/uid/TP40008194-CH103-SW1
Ok, I have downloaded the standard iOS 7 alert sounds, and will put them in my bundle, and play them from there. Why does Apple make things so hard?

Resources