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
Group Details Private
RE: Onsen UI 2 - ons-sliding-menu is now ons-splitter ?
You can set the
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.
RE: Err: Failed to unpack
This error might be related to required
minSdkVersionvalue. If you are using the latest version of the Wikitude plugin which requires
minSdkVersionto be at least
19. By default with Cordova 7.1 project,
minSdkVersionis set to
16. In this case, you can just change the
19as shown below:
<platform name="android"> ... <preference name="android-minSdkVersion" value="19" /> ... </platform>
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
pageattribute. The inline content is the content of the tab itself, not the page the tab points to.
According the ons-tab docs, the
pageattribute 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.
RE: KaTex and OnsenUi
It looks like this problem is to do with the way auto-render works and not a problem with OnsenUI.
renderMathInElementwalks 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.
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
preventDefaultinside 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.
RE: Onsen UI on WAMP
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!
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?