timflapper / cordova-spotify-plugin

This plugin provides a PhoneGap / Cordova API for the Spotify iOS SDK.
MIT License
48 stars 12 forks source link

Install Not Working #2

Open traecadenhead opened 9 years ago

traecadenhead commented 9 years ago

I was very excited to find this plugin, but unfortunately when I attempt to install the plugin to my app I am getting stuck. When the install script prompts me for the custom URL scheme, I enter the scheme and hit enter but the script doesn't read what I input, it just skips to the next line - so I'm not able to make the install script actually run.

Please help!

wiltshirek commented 9 years ago

its been a while since i've used this but i seem to recall having a similar issue. I think it was related to the format of the url i was providing. maybe try removing the protocol 'http' portion. There should also be a --verbose install option available to provide more info.

timflapper commented 9 years ago

The url scheme isn't actually a website url but a url scheme for your app. Check the Spotify iOS SDK tutorial for an example.

traecadenhead commented 9 years ago

Thanks for your response. I’ve still been struggling with getting the install to work. Based on the tutorial you linked to, I’ve been trying to the URL scheme org.deltazeta.hike but when I hit enter, it’s just dropping to the next line and not submitting. Please see attached sceenshot.

Any advice you can offer?

Thanks!

The Giving Booth Trae Cadenhead trae@thegivingbooth.commailto:trae@thegivingbooth.com (901) 248-4773 ext. 701

From: Tim Flapper [mailto:notifications@github.com] Sent: Monday, June 8, 2015 4:49 AM To: timflapper/cordova-spotify-plugin Cc: Trae Cadenhead Subject: Re: [cordova-spotify-plugin] Install Not Working (#2)

The url scheme isn't actually a website url but a url scheme for your app. Check the Spotify iOS SDK tutorialhttps://developer.spotify.com/technologies/spotify-ios-sdk/tutorial/ for an example.

— Reply to this email directly or view it on GitHubhttps://github.com/timflapper/cordova-spotify-plugin/issues/2#issuecomment-109935228.

traecadenhead commented 9 years ago

Sorry, it's me again. I finally gave up on getting the install prompt to work and installed the files manually instead. I used the Spotify SDK Tutorial instructions to install the Spotify SDK Framework.

When I attempted to build, though, I'm getting some errors on SpotifyPlugin.m as you can see in these screenshots.

1

2

Can you tell what I'm missing or need to change from this? I'm really excited about working with this plugin once I can get it running.

Thanks.

traecadenhead commented 9 years ago

@timflapper any advice on what I'm missing? I am working on this app for a national women's non-profit who is dedicated to raising money to help deaf people be able to hear. https://dzhikeforhearing.org Being able to use Spotify in the app (and turn the volume down) is going to be really awesome to help in this cause. Just need a pointer so I can get the plugin running - I know I'll be good from there. Thanks!

timflapper commented 9 years ago

@traecadenhead, i've tried to recreate your issue locally but i'm unable to. Could you copy / paste your terminal results in here when installing it?

jcboncoin commented 9 years ago

@traecadenhead , Hi, in the install.sh file located in plugins/com.timflapper.spotify I commented the "read urlscheme" command at line13 and launched install.sh from a terminal, it seems to go through the rest of the script. Maybe you could try this and see if it solves your problem. Best luck.

timflapper commented 9 years ago

@jcboncoin you also had an issue with the read urlscheme part not firing? Can you tell me which shell + terminal application you are using? I've personally tested in on bash and zsh using iterm2 which both worked.

If you don't let the install script set the url scheme you will have to manually add it to the xcode project. Check Spotify's iOS SDK beginner tutorial for an explanation: https://developer.spotify.com/technologies/spotify-ios-sdk/tutorial/.

adriaanmeuris commented 8 years ago

@timflapper I can confirm the same issue and reproduce it in the Jetbrains PHPstorm terminal. Also tried in iTerm 2.1.4 without success.