Code Monkey home page Code Monkey logo

Comments (6)

spencercarli avatar spencercarli commented on May 22, 2024

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.

yohanology avatar yohanology commented on May 22, 2024

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.

yohanology avatar yohanology commented on May 22, 2024

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.

shimza avatar shimza commented on May 22, 2024

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.

spencercarli avatar spencercarli commented on May 22, 2024

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.

spencercarli avatar spencercarli commented on May 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.