-
Notifications
You must be signed in to change notification settings - Fork 144
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
Invalid State Error after bundling #16
Comments
A few things:
|
just for information, everything works absolutely fine in simulator, it's when I bundle the app on the device that the websocket connection somehow is not working and shows the error. So I tried to change to And I didn't add the production server url in Appdelegate.m because I commented it and uncommented I also tried many different config for the ddp connection (socketConstructor, ddpVersion...). |
The problem comes from my meteor server (1.3 with imports/ directory structure)... Strangely, I can establish a connection to it through the simulator but not on the device. I tried with a meteor server (1.2 with old directory structure) and it's working fine... How is that possible? |
I'm finding that 1.3 has caused many of my builds to fail; necessitating revising from scratch with the new directory structure. Pain in the arse. Native with php is starting to look attractive again!! Sent from my iPhone
|
Ah, yeah you're right about the Appdelegate.m - no need to change that url in this instance. That's really strange that this isn't working in 1.3 but is in 1.2... are you getting an errors on the server? Can you connect to your remote/production server from the simulator (when it isn't bundled)? Also what does your project architecture look like? If you have your react native app in your Meteor app's project structure it may be causing the issues. |
If there were any issues related to the boilerplate they should be fixed in the latest major update. Please let me know if not. Thanks! |
Hi,
I finished my React Native app very quickly, thanks to your awesome boilerplate! Now, I want to try it in production, so I uncommented
jsCodeLocation = [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];
and loaded the app on my Iphone. I can see the SignIn screen but when I actually try to signin or signup, I got an error INVALID_STATE_ERR.I got the ddp package you advised (https://www.npmjs.com/package/ddp), even tried to downgrade to 0.1.1, and use react native 0.24.1.
The text was updated successfully, but these errors were encountered: