nativescript

How to deploy nativescript-barcodescanner in typescript?

寵の児 提交于 2020-01-30 11:50:28
问题 I am trying to run demo from https://github.com/EddyVerbruggen/nativescript-barcodescanner/tree/master/demo both locally and online at https://play.nativescript.org/?template=play-tsc&id=CB7XFu&v=2 but no luck. On the playground I have added the plugin. I noticed there is a similar question here How to use BarcodeScanner plugin from NativeScript but seems it's 3 years before and the plugin changed a lot after that. Can anyone try the playground and tell which line I got wrong? I strictly

How to deploy nativescript-barcodescanner in typescript?

对着背影说爱祢 提交于 2020-01-30 11:48:05
问题 I am trying to run demo from https://github.com/EddyVerbruggen/nativescript-barcodescanner/tree/master/demo both locally and online at https://play.nativescript.org/?template=play-tsc&id=CB7XFu&v=2 but no luck. On the playground I have added the plugin. I noticed there is a similar question here How to use BarcodeScanner plugin from NativeScript but seems it's 3 years before and the plugin changed a lot after that. Can anyone try the playground and tell which line I got wrong? I strictly

Hide Android keyboard in Nativescript on input field blur

随声附和 提交于 2020-01-25 21:47:06
问题 I have a registration form which contains several TextFields and other inputs. When a user taps one of the fields the Android soft keyboard will always show as expected. If I tap outside of the field though the keyboard does not hide. Is there a way to capture this event so that I can hide the keyboard when ever a user taps outside of any of the inputs? It looks like doing the following allows me to hide the keyboard var pageContainer = page.getViewById('registration-container'); if

file-system: SD-Card support

情到浓时终转凉″ 提交于 2020-01-25 20:45:45
问题 As far as i see the file-system.knownFolders only supports the Application Data Temp folders on the device storage. Is there any way how to access external storage like SD-Cards? 回答1: I have made a little research and found that you could access some directories on the device storage using android.os.Environment.getExternalStoragePublicDirectory(...).toString() . This method will return the path to wanted folder and then you could use NativeScript method to read and write files in this folder

NativeScript Fail to connect to camera service

牧云@^-^@ 提交于 2020-01-25 08:27:09
问题 I'am trying to get access native Api to hardware on NativeScript " i don't use no plugins on my code " . when i fire the function startup(0) or startup(1) up to the camera facing chosed i have this errors . Fail to connect to camera service import { Injectable} from '@angular/core'; import * as SocketIO from "nativescript-socket.io"; import * as permissions from 'nativescript-permissions'; let CAMERA = () => (android as any).Manifest.permission.CAMERA; @Injectable() export class CameraService

iCloud turned on in Xcode, but not app store connect. How to fix?

孤街浪徒 提交于 2020-01-25 02:23:07
问题 I have been struggling to get my iOS app to enable iCloud. I have followed documentation and have switched on iCloud with CloudKit in my project in Xcode. But, when I then upload the app to App Store Connect from Xcode, iCloud is not there. It does not show up under "Capabilities" and in using the app through TestFlight, iCloud is not enabled. Is there something special I need to do? Using Xcode version 10.1 + Mac OS High Sierra 10.13. Note: there is a bunch of detail below. If you want to

ngrx store does not update UI after dispatched action from firebase promise

落爺英雄遲暮 提交于 2020-01-24 20:16:18
问题 I am trying to develop a basic NativeScript app using Angular 4. I am also using ngrx store and firebase as a realtime database. When I use a sample array and update the store and not integrate with firebase the program works fine. UI gets updated too. let value = [ { "description": "Groups discussing about Technology", "category": "Tech" }, { "description": "Groups for all kinds of sports ", "category": "Sports" } ]; this.store.dispatch({ type: GroupCategoryListActions.ADD_ITEMS, payload:

Modules not found in shared code with Nativescript and Angular Schematics

社会主义新天地 提交于 2020-01-23 10:46:05
问题 I'm using Angular with Nativescript Schematics. I have installed the nativescript-ui-sidedrawer. When i run tns run ios --bundle The native version is compiled and deployed to the device but when I run ng serve The web version fails with several errors, all very similar. The first one being ERROR in ./node_modules/tns-core-modules/ui/builder/component-builder/component-builder.js Module not found: Error: Can't resolve '../../../platform' in '/Users/markdev/Documents/Code/mydrawer/node_modules

step by step implementation of nativescript push notification in nativescript

耗尽温柔 提交于 2020-01-17 16:57:09
问题 can anyone give step by step guidence starting from creating a helloworld app then the remaining steps to do push notifications. i have already gone through the below link and failed to achieve that https://github.com/EddyVerbruggen/nativescript-plugin-firebase i have some progress on it, refer below code. http.request({ url: 'https://fcm.googleapis.com/fcm/send', method: "POST", headers: { 'Authorization': 'key=AIzaSyBri16HAa7g2REEy******YFnTDGIlM_1k', 'Content-Type': 'application/json' },

Developing Nativescript app with Local API

爷,独闯天下 提交于 2020-01-17 04:43:10
问题 This may be a silly question and I am very new to NativeScript. I have a sample project up. Trying to do a simple get request to a local api. This is a website setup on my local dev machine for: http://test-api.dev/api/v1 I am trying to access an endpoint on my local API and it does not seem to return ANYTHING. But I can change the API endpoint to something that is not a local API and sometimes it return stuff. The API is a Laravel/PHP api and I can confirm it is infact returning valid json,