首页 \ 问答 \ Worklight Console设置“活动,通知”以将通知推送到客户端。(Worklight Console set “Active, Notifying” to push notification to client.)

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
更新时间:2021-10-28 06:10

最满意答案

不幸的是,我无法找到丢失的符号链接的明确答案。 但是我通过添加以下内容解决了手头的问题:

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
  • 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 ...

相关文章

更多

最新问答

更多
  • 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
  • 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
  • OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
  • 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
  • codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
  • 在计算机拍照在哪里进入
  • 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
  • No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
  • 单页应用程序:页面重新加载(Single Page Application: page reload)
  • 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
  • System.StackOverflow错误(System.StackOverflow error)
  • KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
  • 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
  • android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
  • TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
  • 企业安全培训的各项内容
  • 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
  • C#类名中允许哪些字符?(What characters are allowed in C# class name?)
  • NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
  • 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
  • 将多个行和可变行移动到列(moving multiple and variable rows to columns)
  • 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
  • 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
  • Angular $资源不会改变方法(Angular $resource doesn't change method)
  • 在Angular 5中不是一个函数(is not a function in Angular 5)
  • 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
  • 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
  • 常见的python rpc和cli接口(Common python rpc and cli interface)
  • Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
  • 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)