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

Plugin doesn't work with Cordova (ios-device) #53

Closed
floydprice opened this issue May 15, 2017 · 4 comments
Closed

Plugin doesn't work with Cordova (ios-device) #53

floydprice opened this issue May 15, 2017 · 4 comments

Comments

@floydprice
Copy link
Contributor

floydprice commented May 15, 2017

Steps to reproduce using the Demo app in the repo:

meteor add-platform ios
meteor run ios-device

Run the xCode project.

All you get is a white screen on the device and an error/notice in the xCode console:

App startup timed out, reverting to last known good version
@floydprice
Copy link
Contributor Author

Same happens on a fresh app... are there any specific setup steps i need to enable Cordova support?

@floydprice floydprice changed the title Demo doesn't work on IOS-Device Plugin doesn't work with Cordova (ios-device) May 15, 2017
@floydprice
Copy link
Contributor Author

This relates to #43 I will spend some time investigating over the next couples of days.

@floydprice
Copy link
Contributor Author

floydprice commented May 16, 2017

When the app starts on a device we get a number of client side errors in createRouter.jsx...

window.__PRELOADED_STATE__  // This comes out as undefined

and

 var div = document.getElementById('react');  // returns null

the body of the document is empty which suggests we need to do some Cordova specific startup to get the document ready to receive our React components

@floydprice
Copy link
Contributor Author

I suggest we close this issue as it represents a tactical fix (PR #54) a new issue has been raised to capture a more strategic fix ( #55)

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

No branches or pull requests

3 participants