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

Support for Cordova apps #21

Closed
oskarer opened this issue Nov 26, 2015 · 5 comments
Closed

Support for Cordova apps #21

oskarer opened this issue Nov 26, 2015 · 5 comments

Comments

@oskarer
Copy link

oskarer commented Nov 26, 2015

I'm currently developing a Cordova app which I have to run the app in an emulator/phone all the time, due to database dependencies etc. I would then like to attach the developer tool (from chrome://inspect on my desktop) to the phone and see the Redux Devtools from there.

Obviously this doesn't work as of now since the Chrome extension injects properties to the window variable. However, wouldn't it be possible to do this manually in the Cordova app and get it to work? If so, which part of the source do I need to run?

@zalmoxisus
Copy link
Owner

Hey @oskarer,

There is another problem, you cannot communicate with the extension from there. I tried to implement it before, but unfortunately Chrome extensions aren't ready for such communication yet.

It could be done by using debugger-protocol, but it would be too hacky (we have to open chrome with a special flag and communicate with the app via a websocket port). There's a chrome.debugger API, but it's still very limited. We can only send commands to the remote app, but not to communicate directly. Still there are some opened tickets to extend it. If so happens, it would be easy to implement it, not soon though.

I have a solution, but it's not trivial and would be as a separate project for a Chrome / Electron app not extension. Will try to support Cordova and React Native apps.

@oskarer
Copy link
Author

oskarer commented Nov 27, 2015

Thanks for the info @zalmoxisus! Seems like it wasn't so easy I expected, closing.

@oskarer oskarer closed this as completed Nov 27, 2015
@zalmoxisus zalmoxisus mentioned this issue Dec 25, 2015
5 tasks
@zalmoxisus
Copy link
Owner

Hey @oskarer,

I've implemented this in remote-redux-devtools.

@oskarer
Copy link
Author

oskarer commented Jan 11, 2016

Wow, really impressive! Works really well.

One question, say you're several developers working on the same network with the same or different apps.. I guess that doesn't work as of now, but it would be possible if zalmoxisus/remote-redux-devtools#2 is solved?

@zalmoxisus
Copy link
Owner

Yes, there would be 2 options: to work independently or synchronously (so it would be possible to inspect some troubles together on the different machines).

Another option would be for now to run it on localhost as indicated in zalmoxisus/remote-redux-devtools#1, but it is not implemented in monitor app yet (though almost done).

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