docs(push-notifications): Update iOS code & add link to setup guide#927
docs(push-notifications): Update iOS code & add link to setup guide#927wsamoht wants to merge 1 commit intoionic-team:mainfrom wsamoht:update-push-notification-readme
Conversation
Add a link to the detailed setup guide and update the required iOS code to get the FCM token vs. the default APN token.
|
That guide is for using push notifications with firebase, which is not mandatory to use on iOS but some people wanted to, so the guide was created to document how it could be done without the need of using an additional plugin. But the default is APNS and that's what the push-notifications plugin documents. |
|
That makes sense. Would you be open to adding a Firebase section to the iOS setup that mentions the guide? I feel like most developers reaching for push notifications are going to use Firebase for both Android and iOS so there is just one service that they are using. Right now, they have to go searching and might find the guide or end up posting on the forums. I am thinking something like: Firebase setupBy default, the plugin is configured for you to use Apple's Push Notification service (APNs). If you would like to use Firebase to send push notifications on iOS, please see the guide here. |
The code in the Push Notification guide was recently updated in this commit clarifying the FCM token is needed in Firebase for sending push notifications to iOS and not the APN token. To reduce confusion, I've updated the code here as well.
I've also added a link to the more detailed guide of setting up push notifications. There seems to be quite a few questions on the Ionic Forum about setup. The most recent is here which prompted this PR.