Not receiving Push Notifications Using firebase and Objective C

前端 未结 3 1547
心在旅途
心在旅途 2021-01-27 16:45

I am trying to use Firebase for push notification. i have successfully installed the Firebase And Firebase messaging via Cocoapods

3条回答
  •  旧时难觅i
    2021-01-27 17:39

    You must call [[UIApplication sharedApplication] registerForRemoteNotifications]; to properly register for remote notifications.

    Configuring Remote Notifications For Background Usage

    Have you configured your app's background modes to accept remote notifications? You can do this by clicking: Project Name -> Capabilities -> Background Modes

    Turn this on and then tick the box beside Remote Notifications as seen in the screenshot below.

提交回复
热议问题