• RE: Onsen UI 2 - ons-sliding-menu is now ons-splitter ?

    You can set the animation attribute on ons-sliding-item, which will make the animation the same on all platforms. Take a look at https://onsen.io/v2/api/js/ons-splitter-side.html#attributes

    posted in Onsen UI
  • RE: fcm_push_icon.png

    @Bassie
    I checked cordova-plugin-fcm but I am not sure where exactly the icon files should be. The documentaion is not clear enough. So based on this answer, you can set the following configuration for the icon files:

    <platform name="android">   
        ...
        <resource-file src="www/res/mipmap-xxxhdpi/fcm_push_icon.png" target="res/mipmap-xxxhdpi/fcm_push_icon.png" />
        <resource-file src="www/res/mipmap-xxhdpi/fcm_push_icon.png" target="res/mipmap-xxhdpi/fcm_push_icon.png" />
        <resource-file src="www/res/mipmap-xhdpi/fcm_push_icon.png" target="res/mipmap-xhdpi/fcm_push_icon.png" />
        <resource-file src="www/res/mipmap-mdpi/fcm_push_icon.png" target="res/mipmap-mdpi/fcm_push_icon.png" />
        <resource-file src="www/res/mipmap-ldpi/fcm_push_icon.png" target="res/mipmap-ldpi/fcm_push_icon.png" />
        <resource-file src="www/res/mipmap-hdpi/fcm_push_icon.png" target="res/mipmap-hdpi/fcm_push_icon.png" />
        ...
    </platform>
    

    The above setting will place the icons at the target location during the build. You can extract APK file to see them.

    posted in Monaca Tools
  • RE: Err: Failed to unpack

    This error might be related to required minSdkVersion value. If you are using the latest version of the Wikitude plugin which requires minSdkVersion to be at least 19. By default with Cordova 7.1 project, minSdkVersion is set to 16. In this case, you can just change the minSdkVersion to 19 as shown below:

    <platform name="android">
            ...
            <preference name="android-minSdkVersion" value="19" />
            ...
    </platform>
    
    posted in Monaca Tools
  • RE: Define <ons-tab> content inline (without a page template)?

    As far as I can see, the only way to specify the page is with the page attribute. The inline content is the content of the tab itself, not the page the tab points to.

    According the ons-tab docs, the page attribute can only be specified during initialisation i.e. changing it dynamically won’t do anything. Since this is the case I’m not sure it’s currently possible to create dynamic tab pages.

    posted in Onsen UI
  • RE: KaTex and OnsenUi

    @Johannes-Almer

    It looks like this problem is to do with the way auto-render works and not a problem with OnsenUI.

    renderMathInElement walks through the child nodes of the element argument (in this case document.body) and renders the maths in any text nodes it finds. Before a template is activated it doesn’t have any child nodes so katex doesn’t see its contents.

    I think in this case you will need to call katex once you have loaded the template.

    posted in Onsen UI
  • RE: fcm_push_icon.png

    Typically the icons go inside their respective platform tag. So, this should probably go inside <platform name="android"></platform>.

    posted in Monaca Tools
  • RE: <PullHook/> Web Components - Unable to preventDefault inside passive event listener invocation

    Thanks for posting this. Recently we changed a lot of event listeners to be passive for performance reasons. The Chrome blog has a good post on passive event listeners if you’re interested.

    One side effect is that we can’t use preventDefault inside those listeners. We must have missed this one. It won’t affect your app, but it’s not nice to see errors in the console. I have created a GitHub issue to track it.

    posted in Onsen UI
  • RE: Onsen UI on WAMP

    Nope, you don’t need Eclipse or anything like that. To install Monaca CLI, all you need is npm, which is what you use to install it on the command line.

    posted in Onsen UI
  • RE: Onsen UI on WAMP

    Hi Luigi,

    If you want to build apps for Android and iOS, then you do not need WAMP at all. Onsen UI and Monaca will provide you with everything you need!

    Follow the Monaca CLI tutorial on how to get a project set up. When you are setting up the project using the CLI, you can choose the Onsen UI Angular 2 template. That should help get you started!

    posted in Onsen UI
  • RE: Help with transition in vue-onsenui-kitchensink

    It’s a bit hard to figure out what exactly might be causing your issue without being able to see the app itself. Could you reproduce the issue on https://onsen.io/playground/ and share a Codepen here?

    posted in Onsen UI