uncatcrea / wp-appkit

WP-AppKit WordPress plugin (create mobile apps connected to WordPress)
http://uncategorized-creations.com/
194 stars 66 forks source link

Menu items do not update #373

Open MBoberski opened 5 years ago

MBoberski commented 5 years ago

First of all; hi! :)

I created an app and for the first time I added one item on the menu, then I added several more and when I lunch my app again there were only one menu item. Can anybody have idea why meny did not update itself? The same result is when I preview application from browser. I have no cache plugin instaled.

TIA

blupu commented 5 years ago

Hi, I don't reproduce your issue, so let's dig a little bit to find what's wrong. (Some questions are basic but sometimes silly things are causing the problem.)

One thing that may help you is to look at the web service data (Synchronization metabox -> Show me web service data button).

MBoberski commented 5 years ago

Yes I saved the app. New items are only category links and pages. I compile it for Android

Web service shows correct data.

blupu commented 5 years ago

OK - It should be a problem on the app side. What app's theme do you use?

MBoberski commented 5 years ago

Default android one.

mleroi commented 5 years ago

Hi, If you confirm that you see correct menu items in the Web Service Data under the "navigation" entry, then the problem most likely comes from app side. When you preview your app in the browser, can you open developer tools (F12), go to Console tab and enter the following 2 commands:

TemplateTags = require('core/theme-tpl-tags');
TemplateTags.getMenuItems();

Does this display correct menu items?

MBoberski commented 5 years ago

I decided to write own api and app so I removed plugin. But I will reisntal it and test at the weekend :)