Plugin not works when switch to mobile view (add '/m' in url) in one domain but fine in another domain

Question / Problem

My plugin works fine in browser, but if add /m/ in the url for view the result in mobile, the content is empty. But it’s fine in another domain.

Current Situation

The same plugin works no problem in anther domain when add /m/ in url.
I checked the page source and find that the plugin related files not been added to the html head section.

Code / Attempts

Error Message

The following is the page source for desktop version (fine)

and the below code is the mobile version (wrong, without script items was added before “delete kintone.$PLUGIN_ID“)

<script>kintone.$PLUGIN_ID = 'jeecoopaimlibfgegnkfagalgadiaohi';</script>
<script>delete kintone.$PLUGIN_ID;</script>

Desired Outcome / Expected Behavior

Referenced Resources

What’s the reason about this problem, any config related or suggestion?

1 Like

Hello @Henry_Jia
Welcome to the community!

Before I can investigate the cause further, could you please help confirm the following information?

  • Which plugin are you using? Also, is it a plugin provided by Kintone or a third-party plugin?
  • Are the plugin versions the same between the domain where it works and the domain where it does not?
  • Did you modify anything inside the plugin files before uploading it to the domain?
  • Are both environments using the same type of domain (for example, [subdomain].kintone.com or [subdomain].cybozu.com)?

Thank you.

Hello @Chris

Here you go the related information:

  • The plugin is made by myself
  • Both domain is ***.cybozu.com
  • Our company is one provider of kintone plugin (the Krew series)

Best regard,

Additional information for reference:
We found that after remove the plugin from app and add again, the mobile view works fine.

Not sure if it’s related with the not updated version number in manifest.json file when we build and deploy an updated version of plugin for support mobile (with new added mobile items).
Something strange is: the desktop view works fine and the code is the updated one but the mobile view keeps empty view, maybe there has some cache like item not detect that changes of mobile.

Hello @Henry_Jia
I’m glad that the issue has been resolved!

Based on the details provided, your observation suggests that kintone does not automatically re-sync a plugin's manifest structure for apps where it is already installed.

When an app is initially configured with a original ‘Desktop-only’ version of a plugin, kintone appears to maintain a local configuration for that specific app. Even after the plugin is updated in your environment to include a mobile section, the existing app seems to retain its previous 'Desktop-only' structure. This would explain the empty script injection (the missing tags) you observed in the page source. The fact that manually re-adding the plugin resolved the issue indicates that this action was necessary to force the app to pull the latest manifest and correctly initialize the mobile containers.