代码之家  ›  专栏  ›  技术社区  ›  N.Itzhaky

MobileFirst推送通知-轮询不起作用

  •  1
  • N.Itzhaky  · 技术社区  · 10 年前

    我尝试在我的mobilefirst 6.3工作室上运行下一个简单的代码示例,但它不起作用。它什么也不做。 我错过了什么?

     WL.Server.createEventSource({
        name: 'PushEventSource1',
        poll: {
            interval: 3,
            onPoll: "test1"
        }
     });
     function test1() { 
        WL.Logger.info(new Date() + ": test!");
     }
    

    我成功部署了它:

    [2015-02-09 10:23:02]             Starting adapter deployment on MobileFirst Server 
    [2015-02-09 10:23:02]             Starting build of adapter: PushAdapter 
    [2015-02-09 10:23:02]             Deploying adapter: PushAdapter 
    [2015-02-09 10:23:02]             Server host: 10.0.0.177 
    [2015-02-09 10:23:02]             Server port: 10080 
    [2015-02-09 10:23:03]             Adapter build and deploy finished.
    
    1 回复  |  直到 10 年前
        1
  •  0
  •   Idan Adar    10 年前

    如果“不工作”意味着在服务器日志中看不到日志行,请确保在Eclipse的Servers视图中>服务器配置>日志记录部分,“控制台日志信息”选项设置为 INFO .