Skip to content

Onboarding UI - rows and images in JSON #158

Answered by SMartorelli
Bipsibopsi asked this question in Q&A
Discussion options

You must be logged in to vote

I see, you're using the old format (mediaType and mediaPayload) for the first page and the new one (matrix of accessoryViews) for the second. They won't work together so you should switch also the first page to the new one.
This should be it:

PAYLOAD=$(cat <<-END
{
    "pages":[
              {
                "title":"WORDS!",
                "subtitle":"WORDS.",
                "body":"WORD.",
                "accessoryViews":[
                                    [
                                        {
                                            "type":"image",
                                            "payload":"/image.png"
                                        }
              …

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@Bipsibopsi
Comment options

Comment options

You must be logged in to vote
2 replies
@Bipsibopsi
Comment options

@SMartorelli
Comment options

Answer selected by SMartorelli
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants