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

Wordpress JSON compatibility #36

Open
niszlo opened this issue Apr 21, 2021 · 3 comments
Open

Wordpress JSON compatibility #36

niszlo opened this issue Apr 21, 2021 · 3 comments

Comments

@niszlo
Copy link

niszlo commented Apr 21, 2021

Hello,

I'm just discovering Jasonelle's great work, and it seems a very good candidate for my need : releasing a simple website based application getting content on-the-fly (e.g. home showing all recent articles openable isolately + burger menu offering various articles categories) declinable on both Android & iOs platforms, ideally based on WordPress JSON interface.

Yet it's unclear from documentation/example how that would be done. Shall i dev a specific WordPress or PHP module displaying my SQL/website content into Jasonette expected JASON format ? Or shall i rather use native WordPress JSON interface as it is & integrate it with a trick in current Jasonette implementation ?

Thanks in advance if you have suggestion, or example on how to do this best. If so, would imo be great to commit it into the already existing example as i guess my search might be a common one after all :)

@clsource
Copy link
Contributor

Hello, normally such use case can be fullfilled using a webapp made with React, Vue, Svelte or similar that connects with the Wordpress Rest API. Then upload it to a server you control and finally using that url for embed it on a Jasonette web container.

A popular option too is using the services at bubble.io and create an app with that 👍 (and then embed it with Jasonelle). But any website would do.

https://github.com/jasonelle/jasonelle/wiki

{
    "$jason": {
        "body": {
            "background": {
                "type": "html",
                "url": "https://www.google.com",
                "style": {
                    "background": "#ffffff",
                    "progress" : "rgba(0,0,0,0)"
                },
                "action": {
                    "type": "$default"
                }
            }
        }
    }
}

@niszlo
Copy link
Author

niszlo commented Apr 27, 2021

Ok i managed this pointing to a PWA i cloned & mostly recoded.

Sole problem left now : to publish the resulting signed APK, Play Store requires API 29 as target and idk how ...

Also got a warning that "com.jasonette" already exists, shall i rename subfolders and therefore dependancies pathes everywhere needed, to be able to publish ?

Thanks for suggestions to finalize this.

PS : i'm now installing SKD 10.0 + changing pathes to see if that solves Play Store warnings ...

@clsource
Copy link
Contributor

You can also check the Android setup guide :)

https://jasonelle-archive.github.io/docs/legacy/android/

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