Conversation
|
@viestat omg dude you rock! I will test this against our project over the weekend. |
| * `SpotifyLoginViewController.m` | ||
| * `SpotifyLoginViewController.h` | ||
| * `SpotifyAuth.m` | ||
| * `SpotifyAuth.h` |
There was a problem hiding this comment.
It might be helpful to add that it's required to add these references to AppDelegate.m
#import <SpotifyMetadata/SpotifyMetadata.h>
#import <SpotifyAudioPlayback/SpotifyAudioPlayback.h>
|
|
||
| //Assign our module from NativeModules and assign it to a variable | ||
| var SpotifyAuth = NativeModules.SpotifyAuth; | ||
| var SpotifyModule = NativeModules.SpotifyModule; |
There was a problem hiding this comment.
I don't believe this is correct, cannot import SpotifyModule, file is still called SpotifyAuth. Trying to load Native Module SpotifyModule returns null. There are references to this everywhere in the README.....
| someMethod(){ | ||
| //You need this to Auth a user, without it you cant use any method! | ||
| SpotifyAuth.setClientID('Your ClientId','Your redirectURL', ['streaming'], (error)=>{ | ||
| SpotifyModule.setClientID('Your ClientId','Your redirectURL', ['streaming'], (error)=>{ |
There was a problem hiding this comment.
should include (error, message)
| @@ -87,7 +91,7 @@ ___ | |||
|
|
|||
| ### Auth: | |||
There was a problem hiding this comment.
missing startAuthenticationFlow
|
@viestat I have been testing and came across an error on This message also shows in the console in Xcode: It might make sense to use the suggestion on issue #10 and use I feel like this type of authentication is somewhat problematic and frankly not ideal since users have to constantly re-auth, it might solve a lot of problems to use as a second option Authorization Code Flow |
| } | ||
| [sharedIn playURIs:urisArr withOptions:playOptions callback:^(NSError *error) { | ||
| // SPTAudioStreamingController *sharedIn = [SPTAudioStreamingController sharedInstance]; | ||
| [self.player playSpotifyURI:spotifyUri startingWithIndex:index startingWithPosition:position callback:^(NSError *error) { |
There was a problem hiding this comment.
Callback fails here, should uncomment SPTAudioStreamingController
SPTAudioStreamingController *sharedIn = [SPTAudioStreamingController sharedInstance];
[sharedIn playSpotifyURI:spotifyUri startingWithIndex:index startingWithPosition:position callback:^(NSError *error) {
|
@viestat Having issues with almost all the |
|
@digitaldavenyc I will be working on a fix to the issues you highlighted thanks for your support and patience :) |
|
@viestat Looking forward to it! I'd be happy to assist with any README updates or further code fixes. I tried looking into the issues with Do you think it makes sense to rename the |
|
@digitaldavenyc Regarding the the |
|
@viestat are you sure it's an issue with the SDK? It's highly unlikely Spotify would release an SDK with that many broken events. I checked their GitHub issues and didn't see any issues with their events firing. It looks like these events have been part of the SDK since version 20. If it is in fact an issue with Spotify, we should open an issue. I saw your changes to playbackState, these should be helpful in getting beta-25 version ready until we resolve this NativeEvent issue. Thanks! |
|
@viestat I think the issue is you need to add the following line to SpotifyAuth.m: At this location in your PR: The reason you're not seeing events trigger is because you are registering SpotifyAuth as the SPTAudioStreamingDelegate but not the SPTAudioStreamingPlaybackDelegate (so you only get the audio streaming related events and not the playback related events) |
|
@mross22 You are Amazing! |

Implementation for the newest version of Spotify SDK
TODO: