简体   繁体   English

IONIC FCM推送通知ios,无法接收

[英]IONIC FCM push notification ios , not able to receive

I am trying to using firebase push notification for IONIC 1. I am able to do it successfully in android. 我正在尝试对IONIC 1使用Firebase推送通知。我能够在android中成功完成此操作。 But in iOS i am able to add the FCM plugin and build it successfully. 但是在iOS中,我能够添加FCM插件并成功构建它。 While opening the mobile app it ask for push notification permissions also. 在打开移动应用程序时,它还会请求推送通知权限。

But, when i try to send from the firebase notification. 但是,当我尝试从Firebase发送通知时。 I am not able to receive notification in mobile.I have added the .plist to the project root directory and build it. 我无法通过移动设备接收通知。我已将.plist添加到项目根目录并进行了构建。

Do i need to do any configuration for IONIC 1 iOS? 我需要为IONIC 1 iOS做任何配置吗?

Enable Push Notification in capabilities in XCode if your are using XCode 8 or higher. 如果您使用的是XCode 8或更高版本,请在XCode的功能中启用推送通知。

Followings from Ionic site 来自Ionic网站的关注

Note for users of Xcode 8 and higher. Xcode 8及更高版本的用户请注意。

If you're using the latest version of Xcode, you will likely need to activate the Push Notifications capability before your app is able to receive notifications. 如果您使用的是最新版本的Xcode,则可能需要激活“推送通知”功能,然后您的应用才能接收通知。

To do this, simply navigate to the Capabilities section in your app's overview within Xcode and toggle Push Notifications, as seen below. 为此,只需在Xcode中导航到应用程序概述中的“功能”部分,然后切换“推送通知”,如下所示。

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM