ParseReact icon indicating copy to clipboard operation
ParseReact copied to clipboard

ParseReact with Parse 1.6.0 and react-native

Open ethantran opened this issue 10 years ago • 18 comments

Hi, Parse 1.6.0 has more changes than I expected so I will go back to 1.5.0, but I am just posting the errors I ran into.

  1. StubParse does not require('parse/react-native')
  2. LocalSubscription and Channel do not use Parse.User.currentAsync
  3. ParseUser fromJSON didn't have a classname
  4. provider was undefined in ParseUser provider.restoreAuthentication probably because there is no way to init Parse.FacebookUtils

ethantran avatar Sep 09 '15 16:09 ethantran

+1

jaredpalmer avatar Sep 09 '15 16:09 jaredpalmer

Thank you. We've been actively working on getting an update to Parse+React today to follow up on these changes.

andrewimm avatar Sep 09 '15 16:09 andrewimm

1.6 is supported in version 0.5.0 of Parse+React. Let me know if you encounter any issues!

andrewimm avatar Sep 12 '15 00:09 andrewimm

How did you solve 4? I'm still encountering it with 0.5.0...

0x0ece avatar Sep 13 '15 07:09 0x0ece

+1 for 2.

bobintornado avatar Sep 13 '15 07:09 bobintornado

@ecesena Can you be more specific about the issue in 4? I've run it against our FB Login integration tests and it seems to be fine, but because using fb login on React Native current hooks into "private" methods, you may be doing something different than our tests. (we're currently working on publicizing this hook, and improving the way auth providers are registered)

@bobintornado are you using require('parse-react/react-native')?

andrewimm avatar Sep 14 '15 19:09 andrewimm

I'll test and send more details tonight, however I got the same error message also with normal user+pass login (i.e. not fb). For FB, I'm using FBDSK now.

0x0ece avatar Sep 14 '15 20:09 0x0ece

@ecesena I think it may happen when you have Parse Users with FB auth data, but the application isn't registered to use the FB Auth Provider. I have a fix coming in 1.6.2 of the JS SDK.

andrewimm avatar Sep 14 '15 20:09 andrewimm

@andrewimm tried removing auth data from a user, used username+password login, but it still errors. I'll wait for 1.6.2 then. BTW is there a way to monitor for js releases? You don't have a public repo that I can watch, do you? Thanks!

0x0ece avatar Sep 15 '15 04:09 0x0ece

+1 ParseUser fromJSON didn't have a classname

thewizster avatar Sep 15 '15 13:09 thewizster

@ecesena Very odd. In this case, I'd love to know more about this specific error. Version numbers and stack traces will help a lot -- if you can build a reproducible case that fails, that's the ideal scenario. That's what we do for the open source SDKs, and I plan to move to that method of bug triage once we open the JS SDK later this week. Keep an eye on blog.parse.com or the ParsePlatform Github Org for when that happens.

@thewizster Can you be more specific about your issue? I appreciate the feedback, but I can't do anything without knowing any version numbers. Pulling old users from disk should be fixed in 1.6.1, but I'd like to know if I overlooked something.

andrewimm avatar Sep 15 '15 17:09 andrewimm

Errors 1-3 are not an issue for me anymore. I am only running into error 4 using [email protected] and [email protected].

In parseuser.js authproviders is {} causing provider = authproviders[facebook] to be undefined

We need a way to call registerauthenticationprovider since using facebookutils.init isnt an option right?

ethantran avatar Sep 15 '15 21:09 ethantran

@ethandt92 I just released 1.6.2 on npm. Among other things, it adds a clause that will skip synchronization of an unknown auth provider, so this error should no longer occur.

andrewimm avatar Sep 15 '15 22:09 andrewimm

@andrewimm Is /lib/react-native/Parse.js (actually the whole react-native) missing from the 1.6.2 dist?

0x0ece avatar Sep 16 '15 00:09 0x0ece

Ah crap, you're right. I'll have to figure out how that happened -- our publish script first runs the build script for all 3 releases. Well, onto 1.6.3!

andrewimm avatar Sep 16 '15 00:09 andrewimm

Awesome! This seems to fix, my app is back up & running with react-native 0.11 and parse 1.6.3.

0x0ece avatar Sep 16 '15 00:09 0x0ece

Fantastic to hear. I'll leave this task open for another day or so before closing out.

andrewimm avatar Sep 16 '15 00:09 andrewimm

Hi, I have similar problems with Parse.FacebookUtils.logIn using Parse 1.6.3 and parse-react 0.5.0 parse163_fberror Could you look at it?

golombFW avatar Sep 16 '15 21:09 golombFW