问题标签 [appgyver]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
130 浏览

navigationbar - Steroids: NavigationBarButton displayed then vanished

I'm new to Steroids and I'm trying to display a modal view with a button in the native navigation bar (will use it later for a side drawer).

Note: The use of a modal view doesn't require to override potential existing back button on the left side.

My view and its content are displayed normally with a nice NavigationBarButton "Filtres". But once the view is fully loaded the navigation bar is reloaded and the navigation bar button disappears.

Any idea why this happens and how fix it?

Here is the controller code:

Thanks

0 投票
1 回答
192 浏览

navigation-drawer - 类固醇:supersonic.ui.drawers.init 被拒绝:{}

我是 Steroids 的新手,我希望导航抽屉在初始化后自动打开(抽屉的 AngularJS 模块名为“profile-filter-drawer”)。

这是我的代码:

我在 Steroids Connect 中不断收到此日志,但我不明白为什么或如何修复它。

注意:如果它在 structure.coffee 中实例化但不是从我的 AngularJS 控制器中实例化,我的导航抽屉正在工作(AngularJS 模块有效)。

谢谢

0 投票
1 回答
267 浏览

angularjs - Typescript 1.4 中的 AppGyver 和 Angular 控制器

我在 AppGyver 中的角度控制器存在问题,因为从未调用过构造函数。我正在使用 angular 中的“controller as”语法,我不知道 AppGyver 是否支持它,因为据我所知,他的所有文档都带有“$scope sintax”。这是我的控制器:

这是我的观点:

编辑 1 生成的 JS:

0 投票
1 回答
146 浏览

angularjs - 更改超级导航栏按钮标题

Supersonic/Steroids/Appgyver 中的 AngularJS 新手

我知道这不起作用,但是有一些变体可以工作:

尽管

或者,通过超级导航栏按钮上的代码更改标题,而无需删除和添加它们。

似乎无法专门访问按钮,例如:

或者

即使他们应该居住在其中的某个地方,根据:

http://docs.appgyver.com/supersonic/guides/ui/native-components/navigation-bar/#programmatic-apis

有什么建议么?

0 投票
1 回答
124 浏览

angularjs - 角度错误 - 无法插值:(device.osVersion)Android 4.0.3

所以我在我的 Android 手机上运行 Supersonic 演示模板,我不断收到阻止应用加载页面的错误:

无法插值:{{device.osVersion | strReplace:'_':'.'}} 类型错误:无法读取未定义的属性“替换”

页面设置教程页面:此链接

调试控制台截图:

在此处输入图像描述

这是来自 AppGyver 的原始原始演示,所以它应该可以开箱即用!这在我的 iPad 上确实有效,所以它似乎是 Android 的错误。我正在通过手机上的 AppGyver Scanner 运行该应用程序。

安卓版本:4.0.3

这是应用程序屏幕的样子(黑色空间是错误,因为那里应该有文本和按钮):

在此处输入图像描述

0 投票
1 回答
61 浏览

xml - AppGyver 不运行 config.xml?

我遇到的问题是,当我使用时steroids connect,它在没有 config.xml 的情况下运行,并且在这个文件中我有很多东西,比如全屏模式等。

如何让类固醇 appgyver 运行 config.xml 文件?

0 投票
1 回答
191 浏览

javascript - AppGyver 和 AngularJS:依赖注入失败,来自同一模块的 2 个服务

我无法在我的控制器中使用来自同一模块的两个 angularJS 服务。

我在我的 AppGyver 应用程序(面向 MPA)中使用 AngularJS。

我有以下架构:

ServiceCampaign.js

服务用户.js

HomeController.js

index.js(用于依赖注入)

这显然是由于这个不错的错误而失败

(如果我只对 HomeController.js 中的“服务”模块添加一个依赖项,它就可以工作)

有没有一种简单的方法可以让这个工作?最佳做法是什么?

谢谢

0 投票
0 回答
243 浏览

android - AppGyver + Parse.com + GCM

我目前正在努力通过 Parse 为带有 GCM 的 Android App 实现推送通知。这是我所拥有的和有效的:我按照 GitHub 项目推送通知中的自述步骤 我修改了 registrationHandler 以注册 deviceToken:

我在构建配置中启用了推送通知,并且能够构建和安装 apk。在解析核心模块中,我可以看到已注册的设备。我已将 Google 项目 ID 和 API 密钥添加到 Parse。如果我从安装表中复制 deviceToken 并将其与此 Ruby 脚本一起使用,我会立即收到通知。

但是如果我从 Parse 发布通知,我不会收到通知。我错过了什么?

编辑 1:同时我查看了 LogCat,发现消息实际上已传递到我的设备,但消息处理过程中出现了问题:

编辑 2:好的,我调试了传入的推送通知,我从这两种方法收到的 JSON 是不同的。所以我认为 Cordova 的 PushPlugin 无法处理 Parse.com 的 JSON

来自红宝石的消息:

来自 Parse 的消息

0 投票
1 回答
114 浏览

angularjs - Angular App 到 AppGyver - 移植到移动解决方案

我是 appgyver 类固醇的初学者。

我有角度项目。现在我需要使用AppGyver制作 iOS 应用程序。

除了修改根视图并将其指向我的 Angular 应用程序 url ( http://www.yourapp.com ) 之外,我还可以将我的 Angular 应用程序源 / Angular 项目构建添加到 AppGyver 项目中,使其成为 iOS 应用程序。

感谢您的评论

0 投票
1 回答
286 浏览

cordova-plugins - Crashlytics:将崩溃报告器集成到 Appgyver Steroids JS 应用程序中

我们如何将cordova crashlytics 插件集成到我们的类固醇应用程序中。我们正在使用 eclipse sts 开发应用程序,并且我们已经使用 crashlytics 插件安装了它。我们还在Fabric上创建了一个帐户,但我们停留在第 2 步,即启动您的应用程序。似乎类固醇应用程序不被视为 android 应用程序。我们应该怎么做才能合并 crashlytics?