Toll Free: +1-855-656-NUVI

  • Alexander Ziskind

OAuth has been adopted my many organizations, large and small, as the (current) best standard for authenticating and authorizing their users. OAuth 2.0 being the latest iteration of the standard and it’s used to offload the burdensome security related parts of applications to third party experts. While writing your own OAuth flow for your apps could be a fun experience (for those of you that really enjoy headaches), most of the time we are happy plugging in a third party SDK so we can authenticate against their service.

In the NativeScript world, we could use third party SDKs, or we could simply use the new OAuth plugin available on NPM. Here’s how you can start.

Continue
  • Alexander Ziskind

Has this ever happened to you? You create a new NativeScript project and then realize that you wanted to use TypeScript? Your options are:

  1. Delete the project and recreate it using the TypeScript flag.
  2. Delete all JavaScript files, add TypeScript to the project, and recreate the files in TypeScript.
  3. Convert existing files to TypeScript.

I usually end up using the first option, but I do this quite often and it got annoying. If you find yourself in the same boat, this tip should help you out.

Continue
  • Alexander Ziskind

NativeScript is an open source project that keeps evolving with releases happening every couple of months. Perhaps you want to try out what’s coming up in the next release, or perhaps you saw some way you can contribute to the project. Either way, I’m going to show you how you can grab the latest and greatest bits from the nativescript-cli repo on GitHub and be able to run multiple versions of the CLI on your machine.

Continue
  • Alexander Ziskind
  • 1

Those of us that have been looking for a way to call dispatch_async(dispatch_get_main_queue(…)) in iOS environments while developing with JavaScript in the NativeScript framework have been SOL for a while. However, I am pleased to present a short and sweet solution here that saved my behind when I really badly needed to call this function due to a third party CocoaPod that wasn’t returning me to the main thread after a network call.

Continue