Comments (6)
A few things:
- Try to use
node-ddp-client
instead (has a few fixes) - Make sure you add your production server url here and change
env
to prod or staging.
from react-native-meteor-boilerplate.
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 node-ddp-client
: I still got the error page on the device, and in the simulator I can connect through the signin page, but none of subscriptions are working.
And I didn't add the production server url in Appdelegate.m because I commented it and uncommented jsCodeLocation = [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];
to get the offline bundle...
I also tried many different config for the ddp connection (socketConstructor, ddpVersion...).
from react-native-meteor-boilerplate.
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?
from react-native-meteor-boilerplate.
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
On 1 May 2016, at 7:18 PM, Yohan Sihou [email protected] wrote:
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?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
from react-native-meteor-boilerplate.
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.
from react-native-meteor-boilerplate.
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!
from react-native-meteor-boilerplate.
Related Issues (20)
- Permission react-native-meteor HOT 2
- Best way to change bottom tabs based on current screen? HOT 4
- Sharing code between the client and the server HOT 1
- Update Boilerplate HOT 1
- Where to hide splash screen ? HOT 2
- iOS Device build successful however DDP fails to connect HOT 2
- Failing in simulation with TransformError HOT 2
- Thoughts on new "Meteor Client Bundler" vs react-native-meteor? HOT 1
- Failed to release in iOS HOT 1
- :-) Thank you for building this, we'll be in touch soon. I appreciate it.
- Failure of App to Register
- check ddp server conection HOT 1
- Unable to resolve module react-native/Libraries/Renderer/shims/ReactNative ... HOT 8
- App crashes in Xcode HOT 3
- Issues getting Meteor data into React Native using createContainer HOT 1
- What would be the best way to change the title by passing a parameter? HOT 1
- Is it possible to implement the login to meteor from react-native without eject HOT 1
- app crashes immediately HOT 3
- Is it possible to use same code for mobile and web and what I need to do. HOT 1
- Is it possible to use this boilerplate to integrate RN to an existing Meteor App? HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-meteor-boilerplate.