Giter Club home page Giter Club logo

Comments (4)

adamstep avatar adamstep commented on July 21, 2024

Hi @roelve ,

I believe the port forwarding use case is covered in the README here: https://github.com/Instawork/hyperview#running-on-an-android-virtual-device

If you change the demo app source link here to something that uses a port other than 8085, you will need to re-run the adb reverse command with the new port being used. Is that something you've already tried?

from hyperview.

roelve avatar roelve commented on July 21, 2024

I know this was some time ago but I finally had some time to look into this again and I managed to make it work.
(It was an issue with the local WordPress installation that I was using. I eventually reconfigured it so that it would work).

I can now serve a Hyperview app directly from WordPress (which is awesome!)

from hyperview.

adamstep avatar adamstep commented on July 21, 2024

That's great, thanks for the update!

I looked into using WordPress to serve Hyperview XML a while ago, it was a bit tricky since WordPress stores HTML blocks directly in the database. Would love to learn more about who you added support.

from hyperview.

roelve avatar roelve commented on July 21, 2024

Well, I basically just added a plugin that generates the HXML using PHP (adding a PHP header("Content-type: text/xml"); in order to serve it as XML rather than HTML).
I don't actually see what you describe as being an issue, unless perhaps one would use the wbdb class to pull data from the database directly.

I imagine building the hyperview app up using functions like get_the_title() or even the standard WordPress loop should be possible without running into HTML issues. Like creating a custom post type and then adding the same header("Content-type: text/xml"); header to the custom post type template file should all theoretically work as I see it (and then add hxml as markup instead of html).

As for using the block editor to build up a hyperview app, that is going to be a bit trickier indeed (though I intend to find out whether it is possible or not). Although, I think, using an alternative, it might be possible to have a similar kind of functionality. ACF flexible content could potentially mimic the block editor functionality to an extent https://www.advancedcustomfields.com/resources/flexible-content/ without the added hassles gutenberg may cause in conjunction with Hyperview.

I'll keep you posted in any event.

from hyperview.

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.