gluonhq / attach

GNU General Public License v3.0
48 stars 26 forks source link

iOS Push notification handling can not get the FCM-token, but give APNS-token #391

Open SamyNassiem opened 5 months ago

SamyNassiem commented 5 months ago

While adding the Push notification feature to a mobile app, I found that iOS devices always give the APNS token, not the FCM token.

When I checked the attache's code, I did not find any code that indicates that we are using Firebase for delivering the Push notification to the iOS platform. but Attach is integrated with the native Apple notification service and retrieves the native APNS token.

May I have expected that I would receive an FCM token because the Documentation mentions the Firebase as a needed step for Android, and does not clarify which token will be received during the run time for each platform.

I would say that it would be great if we could clarify this in the documentation for easier integration for the developers. On the other side, I think It would be great if we added this as a feature due to the popularity of Firebase in the hybrid-development communities.