-
2 votesanswersviews
iOS上的Nativescript联系人权限
我'm having troubles in order to let my NativeScript app read contacts on iOS. I'm使用库nativescript-contacts来读取地址簿的所有条目和名为nativescript-permission的条目,以便询问用户读取联系人的权限 . 不幸的是,后者似乎只适用于Android,其中一切正常:出现弹出窗口要求用... -
0 votesanswersviews
NativeScript / Typescript / Firebase插件在singleEvent为true时获取和使用数据
我正在使用NativeScript插件和Firebase(nativescript-plugin-firebase)来帮助编写我正在处理的移动应用程序的后端 . 我有一个场景,我正在使用firebase.query,然后使用它与SingleEvent设置为true(所以它不会连续监听) . 我遇到的问题是尝试访问一个或多个项目的密钥,以及能够执行item.name,item.id等操作 . 如果我... -
1 votesanswersviews
本机模块在nativescript中无法正常工作
我试图使用这个android包在nativescript中制作模糊效果 . https://github.com/wasabeef/Blurry 所以在nativescript包括我的app.gradle中的编译在/app/App_Resources/Android/app.gradle中 然后重建一切都很好, Build 很好 . 但是当我开始使用库时,我尝试使用console.dir(glob... -
0 votesanswersviews
nativescript-mapbox使用本机MapView对象
Final Edit 我找到了正确的文档,可以检查MapView实例和mapboxMap以查看可用的函数 . 但是我仍然不清楚如何在JavaScript中实际使用SDK,例如使用 mapboxMap.addLayer(layer: Layer) . 如何制作新图层? 因此,有关如何在我的angular / nativescript应用程序中使用本机SDK的任何提示都很可爱 . Original ... -
1 votesanswersviews
NativeScript:首先调用getPlatformData而不提供projectData
我在过去的几天里一直在看这个 - 项目成功准备(android) 从C:\ App \ mobile-app \ hooks \ after-prepare \ nativescript-dev-android-snapshot.js执行后准备挂钩 从C:\ App \ mobile-app \ hooks \ after-prepare \ nativescript-dev-sass.js执行a... -
3 votesanswersviews
在NathaWalker angular-seed-advanced中导入移动特定的nativescript插件
我最近开始研究Nativescript . 我发现NathanWalker的角度种子先进非常有趣 . 我正面临一个问题 . 如何在我的组件中导入移动特定的nativescript插件,因为该组件也用于Web应用程序 . 如果我直接在src / client / app / components中导入nativescript插件,那么Web应用程序将无法按预期工作 . 我需要知道如何安全地导入插件,...