react-native-facebook-login icon indicating copy to clipboard operation
react-native-facebook-login copied to clipboard

Persistence Issue

Open vinnyoodles opened this issue 8 years ago • 12 comments

Hi, awesome job with this library! I'm running into an issue when persisting the user between app loads. If I start the app for the first time and log in with a user, everything is good. But when I try to reload the app or restart the simulator, its calling the onLoginNotFound callback.

vinnyoodles avatar Dec 23 '16 02:12 vinnyoodles

These are my dependencies

  "dependencies": {
    "react": "15.4.1",
    "react-native": "^0.39.2",
    "react-native-cli": "^2.0.1",
    "react-native-facebook-login": "^1.4.0",
    "react-native-maps": "^0.12.2",
    "react-redux": "^5.0.1",
    "redux": "^3.6.0",
    "redux-thunk": "^2.1.0"
  },
  "devDependencies": {
    "babel-jest": "18.0.0",
    "babel-preset-react-native": "1.9.1",
    "jest": "18.0.0",
    "react-test-renderer": "15.4.1"
  },

vinnyoodles avatar Dec 23 '16 02:12 vinnyoodles

ios or android?

lwhiteley avatar Dec 23 '16 02:12 lwhiteley

ios

vinnyoodles avatar Dec 23 '16 02:12 vinnyoodles

is the keychain capability toggled on for the project?

lwhiteley avatar Dec 23 '16 02:12 lwhiteley

screen shot 2016-12-22 at 9 48 24 pm Yes, but I'm not sure about that red flag

vinnyoodles avatar Dec 23 '16 02:12 vinnyoodles

someone had a similar issue and it had to do with the keychain. i mostly deal with the android side so not very sure how to resolve it swiftly.

but seems like the app id in the apple developer console is where you should also toggle it on

lwhiteley avatar Dec 23 '16 02:12 lwhiteley

hmm okay, I'll try to fix that issue thanks!

vinnyoodles avatar Dec 23 '16 02:12 vinnyoodles

let me know if it resolves your issue, ill leave this open, in the event someone else can help as well

lwhiteley avatar Dec 23 '16 02:12 lwhiteley

I've added the keychain sharing, but the issue is still there.

vinnyoodles avatar Dec 23 '16 07:12 vinnyoodles

yea not entirely sure what's causing it. issue #166 seemed to have a similar issue and was resolved

lwhiteley avatar Dec 23 '16 16:12 lwhiteley

Okay, I'll try to keep looking for a better solution.

vinnyoodles avatar Dec 23 '16 18:12 vinnyoodles

Any update?

alxvallejo avatar Jun 23 '17 14:06 alxvallejo