Remember the code snippet you copied during the Kinvey sign-up process earlier That code is a call to Kinvey.init() with the values you need to make the connection.For a better experience, please enable JavaScript in your browser before proceeding.
![]()
If you follow along through the whole article, youll set up a new Kinvey account, configure a NativeScript development environment and start to take advantage of some of the powerful backend features Kinvey offers. Configure Kinvey Auth Password To RegisterTo do so, head to console.kinvey.comsignup and provide your email and a password to register. You can name your app whatever youd like, but if youd like to follow along with this article, create a new app named Tasks. You can create additional apps at any time.). ![]() Finally, on the next screen, copy your app key and app secret, and paste them somewhere convenient. If you do lose these keys, Ill show you where to find them again later in this article.). Well return to Kinvey later to start to leverage its features, but for now, lets shift over to getting your NativeScript environment ready. Step 2: Set Up Your NativeScript Environment NativeScript is a framework for building iOS and Android apps using JavaScript, and, as such, to start using NativeScript you must set up an environment to write your code. There are a few different ways to do this, but the easiestand the one well use for this articleis NativeScript Playground. NativeScript Playground is a browser-based environment for developing NativeScript apps without installing any local dependencies. But Playground has everything you need to get started, and we highly recommend using it when youre first learning NativeScript and Kinvey. Configure Kinvey Auth Download And InstallTo start developing in Playground, you need to download and install two apps on an iOS or Android deviceNativeScript Playground and NativeScript Preview. You can find the apps by searching for NativeScript Playground and NativeScript Preview in the iOS App Store or Google Play, or by using the links below. This brings up a QR code that you can scan using the Playground app on your device. To do so, just install the NativeScript Playground and NativeScript Preview apps on multiple devices and scan the QR code on all of them. And with that, youre ready to start developing NativeScript apps If youd like, you can experiment by changing the default apps code in the Playground environment. As soon as you save changes, your device will refresh and youll be able to see your updates in action right away. Now that you have a Kinvey account set up and a NativeScript environment ready, lets look at how to connect the two technologies. Configure Kinvey Auth Series Of EasyStep 3: Connect Your NativeScript App to Your Kinvey Account The easiest way to connect NativeScript apps to Kinvey functionality is through the Kinvey SDK for NativeScript, which provides a series of easy-to-use JavaScript APIs. NativeScript Playground includes the Kinvey SDK in every app you build, so you can immediately start using the SDK APIs with no additional setup necessary. The first API you need to use is Kinvey.init(), which is the method that makes the connection from your NativeScript frontend to your Kinvey backend.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |