Using Firebase to send and receive push notification for an iOS app

前端 未结 1 1685
心在旅途
心在旅途 2021-01-27 20:09

I am create a firebase based chat application for iOS. One of the features is to send push notification to the users in the same chat room (if they are offline).

I can\

相关标签:
1条回答
  • 2021-01-27 20:42

    Displaying alert badges and notifications on iPhone applications is accomplished through Apple's Push Notification system. Since the application is not running on the user's phone when they receive notifications, the APN will have to be triggered from your server-side code.

    You'll probably want to create a server-side module that listens for changes to your chat Firebase. When a message appears for a user that is offline, you'll have to schedule a remote notification with the APN. That latter part has nothing to do with Firebase, but has extensive documentation on Apple's developer web site.

    I'm not sure if a web application can display alerts or badges. Otherwise this approach will only work if you create a native wrapper for your Firebase chat application.

    0 讨论(0)
提交回复
热议问题