Ionic 2在客户端发送推送通知

时间:2017-03-18 10:26:03

标签: push-notification ionic2

我有一个问题。

我使用FCM安装了Ionic 2推送通知,但它确实有效。

但是当我按下我制作的应用程序(客户端)中的按钮时,我想发送通知。

可以这样做吗?

app.module

 const cloudSettings: CloudSettings = {
  'core': {
    'app_id': 'myappid'
  },  'push': {
    'sender_id': 'mysnderid',
    'pluginConfig': {
      'ios': {
        'badge': true,
        'sound': true
      },
      'android': {
        badge': true,
         'sound': true
      }
    }
  }
};

0 个答案:

没有答案