Worklight Console设置“活动,通知”以将通知推送到客户端。(Worklight Console set “Active, Notifying” to push notification to client.)
我使用worklight5.06控制台设置“活动,通知”来推送通知,我的应用程序可以收到。 但是在worklight6.20中设置相同,我的APP没有收到通知。
WL5.06和WL6.20有什么区别?
我关注视频: https : //www.youtube.com/watch?v = oDHrqnWieXI
以下是我的APP代码:
<body onload="WL.Client.init({})" style="display: none;"> <!--application UI goes here--> Hello Worklight <script src="js/initOptions.js"></script> <script src="js/main.js"></script> <script src="js/messages.js"></script> </body>
I use worklight5.06 Console set "Active, Notifying" to push notification and my App can receive that. But same setting in worklight6.20, my APP not receive the notification.
What's difference in WL5.06 and WL6.20?
I'm follow the video: https://www.youtube.com/watch?v=oDHrqnWieXI
Below is my APP code:
<body onload="WL.Client.init({})" style="display: none;"> <!--application UI goes here--> Hello Worklight <script src="js/initOptions.js"></script> <script src="js/main.js"></script> <script src="js/messages.js"></script> </body>
原文:https://stackoverflow.com/questions/32815666
最满意答案
不幸的是,我无法找到丢失的符号链接的明确答案。 但是我通过添加以下内容解决了手头的问题:
npm install gulp npm install nodemon
修复符号链接的BeforeInstall部署挂钩。
Unfortunately I haven't been able to find a definitive answer for the missing symlinks. However I resolved the issue at hand by adding:
npm install gulp npm install nodemon
to the BeforeInstall deployment hook which repaired the symlinks.
相关问答
更多-
我可以给你一个不合理的解决方案,这对我来说很有用。 我刚刚在我的.bashrc文件中导出了我的路径。 export PATH="$PATH:./node_modules/.bin" 编辑:这是一段时间,但我改变了我的策略,而不是使用npm脚本。 在以上情况下,请按如下所示设置package.json: "scripts": { "sails": "sails" } 然后你可以运行 npm run sails 或带有参数 npm run sails --
I can give y ... -
我找到了解决方案: .vscode\tasks.json应如下所示: { "version": "0.1.0", "command": "${cwd}/node_modules/.bin/grunt", "isShellCommand": true, "showOutput": "always", "tasks": [ { "taskName": "default", "args": [], ...
-
在这个问题下,有一个.gitignore文件有很多可能的修复方法无法正常工作。 在这种情况下,问题在于(是) .gitignore文件的编码是UNICODE而不是ASCII Under this question there are many possible fixes for a .gitignore file not properly working. In this case the problem is (was) that the .gitignore file's encoding was U ...
-
在尝试之后看到刚才提到的错误: eslint --debug app.js 您需要全局安装eslint插件导入和eslint airbnb配置插件。 npm -g install eslint-plugin-import eslint-config-airbnb-base 您需要安装所述插件,因为在eslint --init配置中,您已选择Airbnb样式指南。 Seeing the error you have just mentioned after trying: eslint --debug a ...
-
由于您使用的是boot2docker ,因此只能安装Max主机文件夹/Users/并可从boot2docker主机访问。 这意味着您需要将/home/app/node_modules到以/Users开头的Mac主机路径,以查看Mac主机上的所述模块。 volumes: - /Users/andre/IdeaProjects/app:/home/app - /Users/andre/node_modules:/home/app/node_modules Since you are using ...
-
不幸的是,我无法找到丢失的符号链接的明确答案。 但是我通过添加以下内容解决了手头的问题: npm install gulp npm install nodemon 修复符号链接的BeforeInstall部署挂钩。 Unfortunately I haven't been able to find a definitive answer for the missing symlinks. However I resolved the issue at hand by adding: npm instal ...
-
我想我想出来了(?) 如果我将bundledDependencies数组添加到我的package.json中,则此问题就会消失。 我只需要确保将被检入repo的每个依赖项都包含在bundledDependencies数组中。 我认为这是一个更常见的用例,但是,事实上我很难找到关于这个主题的任何东西,这让我觉得我可能会以错误的方式去做。 更具体地说,我们正在检查这些依赖关系,以避免在部署到生产时出现任何问题,更好的解决方案可能是我们切换到不检查依赖关系,而是使用npm shrinkwrap I think I ...
-
npm将包存储在许多node_modules目录中 - 不要触摸它们。 在angular-cli情况下,您需要以两种方式安装软件包 - 全局 (使用-g选项)和本地内部项目/应用程序。 基本上: npm install -g angular-cli然后在你的项目中npm install 。 如果您已经安装了angular-cli (损坏),请按照官方指南中的步骤操作。 The npm stores packages in many node_modules directories - don't touch ...
-
您使用的是NPM版本3.x. 根据这个Node npm windows文件路径太长而无法安装包,大多数嵌套问题都在版本3.x中得到解决 Are you using a NPM version 3.x. According to this Node npm windows file paths are too long to install packages most problems with nesting is solved in version 3.x
-
npm start error mongodb / node_modules / bson(npm start error mongodb/node_modules/bson)[2024-04-13]
mongoose错误可能是由于mongoose版本不稳定,更新了"mongoose": "3.8" package.json中的"mongoose": "3.8" 。 (后跟npm install )这可能会删除猫鼬警告。 检查此链接是否无法加载c ++扩展 The mongoose error might be due to unstable version of mongoose, update "mongoose": "3.8" in package.json. (Followed by npm in ...