Is there any example of using pouch-db along with native-script ? I want to give offline support to my app. I didn't find any example of both pouch-db along with native-script.
AFAIK it is not supported tweet but if you want something similar you can always use couchbase and if that still does not satisfy your needs feel free to search nativescript rocks a community resources site or npm
Related
I am trying to figure out how to force the user to use the app only if he has the last update of it( So the app should check if the local and store version are the same). I've seen this feature in some apps. Found this plugin : https://www.npmjs.com/package/nativescript-store-update. It works great on iOS but it does not work at all on Android, so I am clueless right now on how to do this. Any help would be much appreaciated. Thanks
While not sure about forcing to update the store version, you can use the newly introduced AppSync functionality to create mandatory updates for your codebase. See this blog post for details or just search for nativescript-app-sync
I'm looking for an example to go off on how to setup a search bar for a project I'm working on.
I've got a mongodb database and am using nodejs with the express framework.
I'd like to have autocomplete and suggest functionality for the search bar.
I've had a look at typeahead.js but am overwhelmed by how to implement it. If anyone knows of a place to find a working version (that I can upload to my dev environment and take apart) or has the time to run be through it step by step, I'd be very grateful.
Alternatively if there is a much easier to achieve what I want to do, let me know.
Thanks in advance.
My recent research has shown a blog post that might be of help.
http://physalix.com/jquery-autocomplete-search-with-node-js-and-mongoose/
edit:
Sorry for the brevity, unfortunately I am of novice level with node.js so I don't want to submit code directly on here as I cannot confirm it has been tested and will work.
The link above does look like it will work and has been vetted on the original article post as functional. As a general example I believe this will definitely lead you in the right direction to a functioning search bar with the functionality you require.
Note this doesn't implement typeahead.js but works in a similar fashion.
I am developing my app (for android and ios) using nativescript and I have a question, my app will be used for many users around the world so I want to add the support for "chose the language" according the user.
What is the best way to support many language for my string values into the app? I tried to found some example about that but I can't find any information about the stuff.
Thanks in advance
I believe Dan Tamas is working on a plugin for this at the moment.
https://github.com/rborn/nativescript-i18n
This might be not the best way but I hope it could help if you are in urgent.
I have implemented multi-language successfully in my app by using Jed which is the Javascript implementation of GNU gettext .
Things to do are:
Install npm package jed + po2json
Prepare PO files and compile to json
Implements to XML pages by getting the source property from view-model
You can find more detail here:
How to internationalize app in NativeScript
I'm learning Parse (the Javascript flavor) using their Todo App tutorial. I'm trying to write my first query. In the tutorial, I found this code:
var TodoList = Parse.Collection.extend({ ... });
I can't find any info about Parse.Collection in their JS Guide nor their API docs.
Can someone shed some light on what a Parse.Collection is and when I should use it?
You're not seeing anything in the docs because Parse.Collection was removed from the JavaScript SDK in v.1.6.0.
Downloads Page and JavaScript Changelog
SDK no longer contains Backbone-specific behavior. Moving forward, the core SDK will not be tied to any single framework, but we will work with the community to produce up-to-date bindings like Parse+React. The major changes are the removal of Parse.Collection, and allowing Parse.Objects to act as event channels.
In previous versions of the SDK, Parse.Collection was used almost identically to Backbone.Collection, as the Parse SDK was based on Backbone. Things are particularly confusing right now because tutorials on parse.com use pre-1.6.0 versions of the SDK.
First of all many thanks for the incredible source of information that you are providing to people like me.
I am visiting this site very often and most often finding the answer I need, but this is this is the first time I post a question, so please accept my apologies if I don't fully conform to rules.
Here is my issue:
I am "playing" with Dart Editor and Polymer to try to understand if I could use these technologies in my job moving forward
I was able to import the Polymer Core and Paper components in Dart Editor and to install polymer.dart
I was able to create a simple web page with a "core-selector" and to add some Dart code to handle a click on this component
I can't find how to listen using Dart code for component-specific event ("core-activate" & "core-select" here) and how to read component-specific attributes ("selected" & "multi" here)
I don't seem to be able to find good examples showing how to use "standard" polymer components in a web app created Dart Editor
I could find material on how to create my own polymer components using polymer.dart but I would just like to use standard components
I understand both Polymer and Dart are young but I can't imagine the clever brains at Google not having a solution or plans on this.
Regards and many thanks again.
Sebastien
The problem is not that Polymer and Dart are young. Dart is quite mature, Polymer is not even beta but also not so young anymore. The problem are the core- and paper-elements. They are very new and developed in JavaScript and the Polymer.dart team just created a code generator that wraps the JS core- and paper-elements in Polymer.dart elements. This process is only available since a few days and there are several issues which are yet to be solved.
I think you should provide a concrete example in your question of what you can't get working. Basically Polymer.dart core- and paper-elements work exactly as other Polymer.dart elements. So it's hard to know what to explain.