-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Building react-native-spotify 1.2.11 with 0.61.1 #144
Comments
So I've had this issue too, but it only seemed to happen on the iPhone 8 simulator on iOS 13. The iPhone 11 simulators seemed to work fine. It seems like a bug in iOS, but I'm not entirely sure at this point. Can you let me know if you see something like this in your logs?
As for the include issue, not sure what's up with that. Might have something to do with the fact that I updated the submodule repos to point at my forked Spotify SDK repos. I'll take a look at that. |
Can you also see if passing |
"{showDialog:true}" doesn't help. The dialog still opens up but it's only
a flicker. It closes right away...
…On Wed, Oct 2, 2019 at 10:59 AM Luis Finke ***@***.***> wrote:
Can you also see if passing {showDialog:true} to your login function
fixes the issue?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#144?email_source=notifications&email_token=AANFW7RWMZIS5OJCIZQAPWTQMSZMRA5CNFSM4I4XBTCKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEAFB4YA#issuecomment-537534048>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AANFW7SJMCBJ3V3P3KQNSRDQMSZMRANCNFSM4I4XBTCA>
.
|
So the framework should be included directly. Can you make sure that |
You shouldn't need to clone the frameworks yourself |
Can you also see if the project works when you use an older version of the module? Can you force it to use |
[ProcessSuspension] 0x1195f67b0 - ProcessAssertion::
processAssertionWasInvalidated()
Yes I do.
…On Wed, Oct 2, 2019 at 11:04 AM Luis Finke ***@***.***> wrote:
You shouldn't need to clone the frameworks yourself
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#144?email_source=notifications&email_token=AANFW7VWG4ANH6VGTBF5YMDQMS2BDA5CNFSM4I4XBTCKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEAFCQ6I#issuecomment-537536633>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AANFW7V2ZELACJXYSQFM7FDQMS2BDANCNFSM4I4XBTCA>
.
|
Cool so that confirms we have the same bug with the web view disappearing |
Please try with |
Yes it has been working for a few weeks:
0.60.5 : 1.2.10 Yes
0.61.1 : 1.2.10 No
0.61.1 : 1.2.11 No
Unfortunately, I upgraded my box to xCode 11 inadvertently and 0.60.5
stopped working with a weird error. I seem stuck with 0.61.1.
…On Wed, Oct 2, 2019 at 11:07 AM Luis Finke ***@***.***> wrote:
Can you also see if the project works when you use an older version of the
module? Can you force it to use 1.2.10?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#144?email_source=notifications&email_token=AANFW7RZTTCZCS5CBIH6V5LQMS2KRA5CNFSM4I4XBTCKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEAFCZWQ#issuecomment-537537754>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AANFW7TW3OXFEDVVXQ4IWILQMS2KRANCNFSM4I4XBTCA>
.
|
By Yes, I meant it was working for this version pair.
"So the framework should be included directly. Can you make sure that
node_modules/rn-spotify-sdk/ios/external/SpotifySDK has the frameworks
inside it?"
You mean, I'd have to npm install rn-spotify-sdk to build the actual sdk it
self? Or it's just to get the framework?
On Wed, Oct 2, 2019 at 11:10 AM Patrice Gagnon <patrice@patricegagnon.com>
wrote:
… Yes it has been working for a few weeks:
0.60.5 : 1.2.10 Yes
0.61.1 : 1.2.10 No
0.61.1 : 1.2.11 No
Unfortunately, I upgraded my box to xCode 11 inadvertently and 0.60.5
stopped working with a weird error. I seem stuck with 0.61.1.
On Wed, Oct 2, 2019 at 11:07 AM Luis Finke ***@***.***>
wrote:
> Can you also see if the project works when you use an older version of
> the module? Can you force it to use 1.2.10?
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <#144?email_source=notifications&email_token=AANFW7RZTTCZCS5CBIH6V5LQMS2KRA5CNFSM4I4XBTCKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEAFCZWQ#issuecomment-537537754>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AANFW7TW3OXFEDVVXQ4IWILQMS2KRANCNFSM4I4XBTCA>
> .
>
|
Still no luck going back 1.2.10, as I was yesterday. Same behavior, really
looks like a 0.61.1 related issue.
On Wed, Oct 2, 2019 at 11:17 AM Patrice Gagnon <patrice@patricegagnon.com>
wrote:
… By Yes, I meant it was working for this version pair.
"So the framework should be included directly. Can you make sure that
node_modules/rn-spotify-sdk/ios/external/SpotifySDK has the frameworks
inside it?"
You mean, I'd have to npm install rn-spotify-sdk to build the actual sdk
it self? Or it's just to get the framework?
On Wed, Oct 2, 2019 at 11:10 AM Patrice Gagnon ***@***.***>
wrote:
> Yes it has been working for a few weeks:
>
> 0.60.5 : 1.2.10 Yes
> 0.61.1 : 1.2.10 No
> 0.61.1 : 1.2.11 No
>
> Unfortunately, I upgraded my box to xCode 11 inadvertently and 0.60.5
> stopped working with a weird error. I seem stuck with 0.61.1.
>
>
>
> On Wed, Oct 2, 2019 at 11:07 AM Luis Finke ***@***.***>
> wrote:
>
>> Can you also see if the project works when you use an older version of
>> the module? Can you force it to use 1.2.10?
>>
>> —
>> You are receiving this because you authored the thread.
>> Reply to this email directly, view it on GitHub
>> <#144?email_source=notifications&email_token=AANFW7RZTTCZCS5CBIH6V5LQMS2KRA5CNFSM4I4XBTCKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEAFCZWQ#issuecomment-537537754>,
>> or mute the thread
>> <https://github.com/notifications/unsubscribe-auth/AANFW7TW3OXFEDVVXQ4IWILQMS2KRANCNFSM4I4XBTCA>
>> .
>>
>
|
Yeah that's what I was worried about. I think it an iOS bug. The odd thing is I retested my other project on the simulator again and the bug seems to have gone away. Not sure what that means. Also the Spotify streaming SDK frameworks should be included in the node module folder when you install it via |
You lost me there. My framework search patch seems correct:
[image: Screen Shot 2019-10-02 at 1.00.47 PM.png]
I have an import not found, will the framework search path help? I don't
see that you include node_module in your header search path, I'm still
curious as to where this one resolves:
[image: Screen Shot 2019-10-02 at 12.59.35 PM.png]
…On Wed, Oct 2, 2019 at 12:53 PM Luis Finke ***@***.***> wrote:
Yeah that's what I was worried about. I think it an iOS bug. The odd thing
is I retested my other project on the simulator again and the bug seems to
have gone away. Not sure what that means.
Also the Spotify streaming SDK frameworks should be included in the node
module folder when you install it via npm install rn-spotify-sdk. You
just need to add the framework search path
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#144?email_source=notifications&email_token=AANFW7WXJZGVRB5C5OUST23QMTGZDA5CNFSM4I4XBTCKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEAFOAXQ#issuecomment-537583710>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AANFW7QVYSUJTT2DVOTOF5DQMTGZDANCNFSM4I4XBTCA>
.
|
It's not a header search path. It's a framework search path. They're different. The README explains where you need to add it. |
Also whatever images you attached are not visible to me |
So again, that's not framework search paths. That's header search paths. They're different things. You need to add the framework search path where the README specifies |
I'm confused as to what you're trying to do? It looks like you've just cloned this project and are just trying to build it individually, which is not how react native works. You need to have a root project and add this as a npm dependency. The project will not build on its own |
Ah! I was trying to build it on it own. Well that sums it up... I'll retest
your example app with 0.61.1 see how far I can get.
Thanks.
…On Wed, Oct 2, 2019 at 1:29 PM Luis Finke ***@***.***> wrote:
I'm confused as to what you're trying to do? It looks like you've just
cloned this project and are just trying to build it individually, which is
not how react native works. You need to have a root project and add this as
a npm dependency. The project will not build on its own
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#144?email_source=notifications&email_token=AANFW7RMPXYB4M3VYQJZRALQMTK6TA5CNFSM4I4XBTCKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEAFRRAI#issuecomment-537598081>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AANFW7TWZBCVCTZ2W52H27DQMTK6TANCNFSM4I4XBTCA>
.
|
I wanted to chime in and say I'm getting the same error with React Native: 0.61.2 |
About the Auth screen that no longer appears, I'm trying to understand the code logic: Now, the decisionHandler gets a PolicyAllow because canHandleRedirectURL returns false and the login page never appears. The canHandleRedirectURL looks like this: The auth page flickers and I don't have a chance to login. The url (accounts.spotify.com) must have a prefix of the url for my mobile app in the Spotify Dashboard? Why this hasPrefix check? The example app has:
For mobile, there's no web redirection per se, it only has to match one of the values in the Spotify Dashboard. Am I missing something? |
This is a prefix check for the redirect URL. When it sees that the page is navigating to the redirect URL, it stops the navigation, grabs the values from the redirect URL, and closes the login page. As you've shown, |
|
Thanks much of the prompt feedback. I'm tying to understand your code only.
It looks great, works well and hasn't changed.
I went back to xCode 10.3 thinking that issue started occurring after my
upgrade to 11.0. It must have been a coincidence...
…On Thu, Oct 3, 2019 at 2:30 PM Luis Finke ***@***.***> wrote:
This is a prefix check for the redirect URL. When it sees that the page is
navigating to the redirect URL, it stops the navigation, grabs the values
from the redirect URL, and closes the login page. As you've shown,
canHandleRedirectURL is returning NO, thereby allowing the web page to
continue loading. If it detects that it's navigating to a redirect URL,
then it will close. However, the web view is closing despite never hitting
a redirect URL. As far as I can tell, that bug does not have anything to do
with this piece of code.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#144?email_source=notifications&email_token=AANFW7SY25ZFG62V5X7O4XTQMY24LA5CNFSM4I4XBTCKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEAJETFA#issuecomment-538069396>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AANFW7T6AUZ7JLSLMCJWVPLQMY24LANCNFSM4I4XBTCA>
.
|
Right, Thanks, it closes for another reason.
…On Thu, Oct 3, 2019 at 2:32 PM Luis Finke ***@***.***> wrote:
jowabo://auth is not the prefix of
https://accounts.spotify.com/authorize?clie...., so the page is allowed
to continue loading
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#144?email_source=notifications&email_token=AANFW7VX6SREOVECAKS7MALQMY3DXA5CNFSM4I4XBTCKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEAJEZEI#issuecomment-538070161>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AANFW7V23ECBEMVCMDL2WI3QMY3DXANCNFSM4I4XBTCA>
.
|
My issue got resolved when I installed the package via Cocoapods instead of doing the manual install. When I tried reinstalling the packages, the error didn't come up for this package, but for |
I have had a ton of luck with this: https://github.com/openbakery/gradle-xcodePlugin I'm gonna call this "the best thing that happened to Xcode ever". It tells you everything that works and doesn't. The minimal build.gradle in the Usage section is sufficient for me. |
@therealaldo were you able to fix issues with react-native-events? I'm trying to install with cocoapods. I've added this
to Podfile. and had to run But after that I'm getting a ton of errors related to react-native-events after building: were you able to solve that? |
I'm sorry, this is more a question than an issue.
Thanks for your solid work on this library it is very useful to me. I know Spotify is going to the remote version of the API, but in the mean time, I'd like build it locally to investigate an issue.
It stopped working properly after I upgraded to RN 0.61.1. I can no longer login. The web view appears a bit, and closes right away.
I'm trying to build it in the mean time to diagnose this but I can't. Can I ask about your setup?
I have clone ancillary modules at the same level:
I'm looking at the project includes
Were you able to test 1.2.11 on IOS yesterday? I can't where
<SpotifyAudioPlayback/SpotifyAudioPlayback.h>
is going to be found from these locations.Any help will be appreciated.
The text was updated successfully, but these errors were encountered: