0

バージョン 2.0.0

ドキュメントに従って解析オブジェクトを使用しようとしています: https://trigger.io/modules/parse/current/docs/index.html

forge.parse.push.subscribe(...)

私が得ているエラー:Uncaught TypeError: Cannot read property 'push' of undefinedこれ。したがって、解析プロパティは設定されていません。これは構成が正しく設定されていないという問題だと聞きましたが、ツールキットを介して解析を設定しても効果がないようで、解析プロパティがまだ設定されていません。

私の設定:

{
  ...
  "modules": {
    ...
    "parse": {
      "version": "2.0",
      "config": {
        "clientKey": "xxx",
        "applicationId": "xxx"
      }
    }
    ...
  }
  ...
}

偽造署名:

{
  button: Object
  config: Object
  document: Object
  enableDebug: function (){h.debug=true;h.priv.call("internal.showDebugWarning", },null,null);h.priv.call("internal.hideDebugWarning",{},null,null)}
  event: Object
  file: Object
  geolocation: Object
  internal: Object
  is: Object
  logging: Object
  message: Object
  notification: Object
  prefs: Object
  reload: Object
  request: Object
  tabs: Object
  tools: Object
  __proto__: Object
}
4

2 に答える 2

0

以下で試してみてください。

forge.partners.parse.push.subscribe("offers",
function () {
  forge.logging.info("subscribed to offers push notifications!");
},
function (err) {
  forge.logging.error("error subscribing to offers notifications: "+
    JSON.stringify(err));
});
于 2013-08-05T13:33:18.930 に答える