ionic3本地通知和fcm似乎无法一起使用

时间:2019-01-08 10:22:44

标签: ios angular firebase ionic3

我正在使用ionic3 FCM插件和本地通知。在android上一切正常,但是在ios上,当我在前台时通知没有出现:

"@ionic-native/local-notifications": "^4.18.0",
"@ionic-native/fcm": "^4.18.0",
"cordova-plugin-fcm-with-dependecy-updated": "^2.4.0",
"cordova-plugin-local-notification": "^0.9.0-beta.3",

this._localNotifications.schedule({
            id: 1,
            text: (data.text ? data.text : data.description),
            icon: "file://assets/icon/fcm_push_icon.png",
            smallIcon: "file://assets/icon/fcm_push_icon.png",
            color: "#424242",
            foreground: true,
            data: {url: data.url}
          })

有人知道出什么问题吗?

0 个答案:

没有答案