Stream song via Spotify SDK without Spotify account on the users' side? - ios

Is it possible to build an iOS app that streams from spotify in a way where it won't need the user to login to Spotify? In a way where only our application is registred.
It is just not clear after scanning through the SDK / API section.

Disclaimer: I didn't work with the Spotify SDK
It should be possible. I suppose you can hardcode the login info in the code directly, and have the app login to spotify with the same user account every time (the one hardcoded in the app).
On the other hand, I don't see a good reason why you would want all the users of your app to connect as the same user to Spotify. But that is your decision :).
Also, I think you should also check the Spotify terms and conditions before you do that. Not sure if that's an issue or not.

Related

I want camera permission to need to be granted only one time in a video networking - platform - issues with ios and safari

I want to be able to enable a user on a video networking web platform to only need to grant camera permission one time, and be able to have separate video chats with multiple users.Part of the 'event" will have multiple one to one video chats. There is a one to one video chat with one user. it ends. there is another 1 to one video chat with another user. It ends, etc.... As it is this permission is needed to be granted for each separate video chat. I am having this issue primarily with ios on safari. I am having someone else build this web platform and the person is not able to solve this issue with the video plug in they are using. They claim it is an issue with mac devices that cannot grant permission to particular websites. But I know that this issue has been solved with other networking platforms. Can I accomplish this with tokbox (vonage)? Or please tell me what video platform to use and the specific way to accomplish this. I am not a developer but will pass on exactly what you give me to my developer team. I am considering having the website be rebuilt with tokbox but first want to be sure that I can accomplish this. The website it being built with PHP but this issue is so sognificant that I might have it bilt from scratch in whatever way is needed. Thank you very much!!!! I know this issue is solveable as I've seen this on other platforms - Zoom and other video networking platforms like remo.. thanks!!!
The Agora web SDK requests the browser for camera and microphone permissions. Now remembering these permissions is done by the browser itself and not the JavaScript SDK.
As to answer how other platforms offer this is because those are native apps and not a mobile website. So they don't have to play by the rules of the browser. If you are interested in that, you can take a look at our IOS SDK.
https://docs.agora.io/en/Video/start_call_ios?platform=iOS

How can I get Alexa working on my iOS app?

I have been checking out the Alexa Skills kit the past few days. I have also been poring through the documentations for both the Skills kit and the Voice Service. I am just having a little hiccup trying to understand the flow. I have implemented one of amazon's sample skills (favourite colour sample) in the developer console and also wrote a sample lambda function to handle the type of response that will be delivered. Its working on the test simulator and what left is basically getting lambda running through my ios app. However I have the impression that I don't have to use the voice service. Am I wrong? I am quite confused, it would be awesome if anybody who has some more clarity could shed some light on the matter. If I get lambda working also, I think it will accept requests that are in a particular format. Where do I have to send the encoded audio to get a json response to send to the skills kit? To the Alexa Voice Service?
Also I am authenticating my app using cognito and dynamo db. If I were to use Alexa Voice Service, then it is mentioned that the user will have to also login to amazon. So do I still have to work with the login with amazon sdk? Or is there a workaround?
Based on Amazon documentation there are two ways to interact with Alexa:
Sounds like you want to implement the app thru the Companion method.
As far as the JSON goes, i am currently resolving that issue now, (will post answer once I have it resolved).
Basically you have to use AVFoundation to capture audio from iPhone and send 2 https messages to Alexa (One message with JSON Body & the second message with audio captured as body.) Bases on Documentation
Companion App
(You have a device (such as a smart speaker) that you want to add Alexa to. So, you build in support for AVS. Great! Now you need a way to authorize it and associate it with the user's account. This is the "companion app" approach. The companion app connects to your smart product and allows the user to login and authorize the speaker to use Alexa and connect to their Amazon account.)
Mobile OR Website
AVS App
(You don't have a device you need to authorize - instead you want to speak to Alexa from within your Android/Iphone application.)
Android or Iphone
You can find a swift example on github on how to implement a iOS AVS client
https://github.com/chintan1891/iOS-Alexa

Get user activity information from other applications

My question is that is there any way possible to get what users are listening to using other music services, such as Spotify or Pandora?
iOS have everything sandboxed so apps do not mess around with data of other apps. A little while back it was absolutely impossible for 2 of your own apps to share some information with each other.
iOS 8 has changed that by Inter-App Communication but not to the extent where you want it. Even in iOS 8, the recepient app has to provide the functionality and should handle your incoming request to see what music they are playing.
Your better course of action would be look up if Pandora or Spotify have some API which let's users login, and share their listening history with your app.

Campaign Measurement - Google Analytics iOS SDK

I want to track my app may be launched by referrals from ad campaigns, websites, or other apps. Therefore, I'm using Google Analytics iOS SDK. Here's guiding document https://developers.google.com/analytics/devguides/collection/ios/v3/campaigns. According to this document, I'll write my own implementation code in application:handleOpenURL: method.
With Android SDK, Google Play app broadcasts an INTENT_REFERRER to our app during installation. This intent contains the value of the referrer parameter of the link used to reach your app's Google Play Store page, if one was present. So, my question is that "Are there any similar things in iOS? How to test it?".
Thanks and best regard,
iTunes doesn't broadcast anything similar to intent_referrer at present. If you use Google Analytics for iOS installs, GA uses Identifier for Advertiser (IDFA) for tracking. When a user taps on an advertisement from a supported network on an app, the IDFA is sent to Google. Then, when your app launches, the IDFA is sent again and compared to list of IDFAs that Google stored from previous taps. That way they can give attribution.
It's obviously not as clean as intent_referrer, but it's the best one can do at present. You can also try fingerprinting etc with Appsflyer, MobileAppTracking etc, but I don't know how accurate those are. I've heard they're not very accurate, but they're better than nothing.
Apple announced adding support for campaign tracking in iTunes Connect. But, we haven't heard about it for a very long time now. So, I won't hold my breath. Hope this helps!

How did Google Music for iOS access data from another iOS App?

Today I downloaded the new Google Music app for iOS and it immediately had me signed in already. I assume they accomplished this using one of the other Google Apps on my phone. To keep this appropriate for StackOverflow, here's the question, specific and objective:
How (technically) can an app (like Google Music) authenticate a user using data from another app (like Google Search or Google Chrome)? I was under the impression that apps in iOS were entirely sand boxed.
I'm very curious in finding a technical explanation for this, so if someone could recommend a way to rephrase or retag the question, please feel free to edit or migrate.
iOS Keychain can be shared with your other apps via access groups, see this for example.

Resources