Skip to content
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

How to use Express Routes with iOS #80

Open
digitaledge opened this issue Oct 16, 2015 · 3 comments
Open

How to use Express Routes with iOS #80

digitaledge opened this issue Oct 16, 2015 · 3 comments

Comments

@digitaledge
Copy link

Hello,
is it actually possible to render pages from the Express Server right within the ios app?

Actually cordova drops an error "index.html not found" using simple routings like with the code below:

router.get('/', function(req, res, next) {
    res.render(views/index2.html');
});
@ktrzeciaknubisa
Copy link
Member

You mean index2.html perhaps? Will that work for you: "./views/index2.html" or
__dirname + "/views/index2.html" ?

@digitaledge
Copy link
Author

Im trying to get the app loading a page served by express on startup.

We are testing to port a browsergame to jxcore wich required web workers on the frontend.
My hope is that this becomes possible with jxcore, since cordova does not work with them because the application is not loaded from a server url with it (security issue).

@ktrzeciaknubisa
Copy link
Member

Generally there is no problem with Express on iOS. You may see the samples of jxcore-cordova repo.

If you can prepare a minimal sample that we can use for reproduction of the problem (with dependency list), that would help us.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants