Closed qliqdev closed 3 years ago
Remove the #if USE_PUSH
macro lines, including the closing #endif
(but not what's in between them), that's no longer needed, I don't see them in the links you posted, if you do, you probably have a cached version.
Also, note that you are using FCM, so you'll get the FCM token, not the APNs token. You don't really need to use FCM on iOS, that guide was created because a lot of people wanted to use it, but you can use push notifications with APNs directly or any other service (for other services you might need plugins)
Remove the
#if USE_PUSH
macro lines, including the closing#endif
(but not what's in between them), that's no longer needed, I don't see them in the links you posted, if you do, you probably have a cached version.Also, note that you are using FCM, so you'll get the FCM token, not the APNs token. You don't really need to use FCM on iOS, that guide was created because a lot of people wanted to use it, but you can use push notifications with APNs directly or any other service (for other services you might need plugins)
Thats incredible. Even didn't about that. Thank you very much. You saved my time
Have Same Configuration and even tried the above mentioned solution still my Notifications are not working on IOS. I can see my FCM Token in Xcode Logs. Here is the Issue with Details:
š Capacitor Doctor š
Latest Dependencies:
@capacitor/cli: 3.2.2
@capacitor/core: 3.2.2
@capacitor/android: 3.2.2
@capacitor/ios: 3.2.2
Installed Dependencies:
@capacitor/cli: 3.2.2
@capacitor/core: 3.2.2
@capacitor/android: 3.2.2
@capacitor/ios: 3.2.2
https://github.com/capacitor-community/fcm/issues/90#issue-987696998
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out.
Bug Report
Hi everyone! Unable to receive APNs token from listener; Using latest Capacitor; I've done every thing from these docs:
iOS: 14.6 Iphone 12 Mini
Capacitor Version
Platform(s)
ios
Current Behavior
PushNotifications register called But nothing returned
Expected Behavior
Expecting APNs token
Code Reproduction
Podfile
AppDelegate.swift
Also tried
Other Technical Details
npm --version
output: 7.15.1node --version
output: v15.14.0pod --version
output (iOS issues only): 1.10.1Additional Context
On Android works well. Also i generated all needed certificates in Apple Developer and uploaded to Firebase Messaging IOS configuration;
Guesses: May be APNs will be returned after publishing App to Appstore?