mystor / meteor-routecore

Client and server side rendering/routing powered by React
84 stars 6 forks source link

Cordova compatibility #15

Open hellogerard opened 9 years ago

hellogerard commented 9 years ago

Great package! Love the server-side rendering.

Is this intended to work on Cordova? It is not working for me. I am just getting a blank screen. To reproduce, create an empty meteor project with a single file (e.g. routes.jsx):

/** @jsx React.DOM */

RouteCore.map(function() {
  this.route('/', function() {
    return (
      <div>
        hello
      </div>
    );
  });
});

This works fine in a browser. Then, run in the simulator by adding the platform (meteor add-platform ios) and running meteor run ios (More Cordova instructions here).

It looks like meteor-routecore has to get started on the server, but never does in a Cordova app.

mystor commented 9 years ago

To be perfectly honest, I've never tried to run a Cordova app, so I have no idea how well/if routecore would work with it.

Im not sure why it isn't working, but there might be a simple fix.

hellogerard commented 9 years ago

It's reeeaally easy to test :-)

rozzzly commented 9 years ago

Any update on this? @hellogerard did you happen to get this working? thanks.