nativescript

Code Signing Error - Verify the value of the CODE_SIGN_ENTITLEMENTS

对着背影说爱祢 提交于 2020-02-25 08:31:46
问题 If i try to compile a IOS-Nativescript-App using cloud-service from sidekick, i get this error: (CLI) Code Signing Error: The file \"/tmp/builds/_/27e1345b5c089d99eb18995c590617489875f779/5.0.0/5.0.0/APPNAME/platforms/ios/APPNAME\APPNAME.entitlements\" could not be opened. Verify the value of the CODE_SIGN_ENTITLEMENTS build setting for target \"APPNAME\" and build configuration \"Debug\" is correct and that the file exists on disk. [xcode-build] Code Signing Error: Code signing is required

How to get mac address and ip in Nativescript?

耗尽温柔 提交于 2020-02-08 10:30:33
问题 I want to get IP address from my mobile Android. var context = application.android.context; var wifiMgr = context.getSystemService("wifi"); var wifiInfo = wifiMgr.getConnectionInfo(); var ip = wifiInfo.getIpAddress(); console.log('ip', ip) The result is: JS: ip -2029999936 But in fact this is not my IP. Can you ask me any idea? Update: I follow this . I have this code: Step1. In my component add this code: import app = require("application"); app.android.context; constructor() { var context =

Nativescript app tries to load a npm module from the wrong path

限于喜欢 提交于 2020-02-08 04:49:53
问题 This is a problem I'm facing with 2 modules I installed through npm (tns add plugin produces the same error). Oct 24 13:27:00 mbp mobile[83478]: file:///app/tns_modules/ui/builder/builder.js:167:56: JS ERROR Error: Building UI from XML. @file:///app/main-page.xml:18:11 ↳Building UI from XML. @file:///app/mainTabs/tabNews/tabNews.xml:6:20 ↳Module 'ui/fab' not found for element 'Fab'. ↳Could not find module 'ui/fab'. Computed path '/Users/foo/Library/Developer/CoreSimulator/Devices/<device id>

Nativescript app tries to load a npm module from the wrong path

只谈情不闲聊 提交于 2020-02-08 04:49:05
问题 This is a problem I'm facing with 2 modules I installed through npm (tns add plugin produces the same error). Oct 24 13:27:00 mbp mobile[83478]: file:///app/tns_modules/ui/builder/builder.js:167:56: JS ERROR Error: Building UI from XML. @file:///app/main-page.xml:18:11 ↳Building UI from XML. @file:///app/mainTabs/tabNews/tabNews.xml:6:20 ↳Module 'ui/fab' not found for element 'Fab'. ↳Could not find module 'ui/fab'. Computed path '/Users/foo/Library/Developer/CoreSimulator/Devices/<device id>

Unit testing Nativescript application logic on a browser

删除回忆录丶 提交于 2020-02-04 22:16:44
问题 I am trying to set up unit testing for a Nativescript application, run by ng test on a browser. The problem is that whenever there is a tns-core-modules or another plugin import, the module cannot be resolved because of the platform specific files (e.g. "tns-core-modules/application/application.android.js") that never get compiled into the bundle, thus throwing an error like "Module not found: Error: Can't resolve 'tns-core-modules/application'". I know there is a built-in unit test support

Integrate firebase with nativescript

前提是你 提交于 2020-02-04 07:33:05
问题 Firebase has an Android library. How can I integrate with nativescript? There is no tutorial out there. I really need help for the setup and how to call those api. 回答1: I've just built nativescript-firebase, which is loads the Firebase Node.js SDK in a way that's compatible with NativeScript. Also, Eddy Verbruggen has written nativescript-plugin-firebase which uses Firebase's corresponding Android and iOS SDKs. 来源: https://stackoverflow.com/questions/30521626/integrate-firebase-with

SOAP Web Services in NativeScript

微笑、不失礼 提交于 2020-02-03 08:45:10
问题 I am new in nativescript app development, I want to use SOAP web services in nativescript, i.e how to implement SOAP request & response in nativescript. Please give me suggestions, didn't find any way to implement SOAP, all search results are implemented in JavaScript code. I do open github issues, please check - https://github.com/NativeScript/NativeScript/issues/2284 Thanks :) 回答1: Well, their is no built in soap handling. However, you can make you own in a couple steps. NativeScript has

How to create xml component dynamically in nativescript typescript

让人想犯罪 __ 提交于 2020-02-03 02:04:46
问题 I want to add another component like layout, button, image, etc... This my xml code and I want to add xml on stacklayout which ID is "chatbox": <GridLayout orientation="vertical" rows="*, auto" columns="auto,*, auto"> <ScrollView row="0" colSpan="3" col="0"> <StackLayout id="chatbox"> // I want to add XML component here dynamically </StackLayout> </ScrollView> Here's my current typescript code but it doesn't work. It doesn't even show compile error. export function onSendButtonTap(args:

Could not resolve com.android.tools.build:gradle:3.2.1

一个人想着一个人 提交于 2020-02-02 11:08:32
问题 There is long time I had not developed any Android application (about 5 months) and now I have came back with nativescript. When I have created my first app using nativescript, I encountered this issue: Executing before-shouldPrepare hook from C:\Data\ProjectFiles\NativeScript\HeavenlyMinutes\hooks\before-shouldPrepare\nativescript-dev-webpack.js Skipping prepare. Building project... Gradle build... FAILURE: Build failed with an exception. What went wrong: A problem occurred configuring root

Could not resolve com.android.tools.build:gradle:3.2.1

☆樱花仙子☆ 提交于 2020-02-02 11:07:27
问题 There is long time I had not developed any Android application (about 5 months) and now I have came back with nativescript. When I have created my first app using nativescript, I encountered this issue: Executing before-shouldPrepare hook from C:\Data\ProjectFiles\NativeScript\HeavenlyMinutes\hooks\before-shouldPrepare\nativescript-dev-webpack.js Skipping prepare. Building project... Gradle build... FAILURE: Build failed with an exception. What went wrong: A problem occurred configuring root