Eric Bonilha 3 Posted October 28, 2021 Hello For the past few days I've been struggling trying to get the new Firebase integration of Delphi 11 (that was added in 10.4) for IOS to work, for Push Notification. Embarcadero really does a very poor job of documentation and sample code.. I'm impossible that they developed and never tested if this works... All the sample codes I found on the internet refer to the use of KastriFree library for FCM for IOS on Delphi, but supposedly, FCM for IOS support was added natively... and I would like to use the native implementation from Delphi instead of the third party library. I believe I have done all steps necessary (There are so many) Basically the iOS application is compiling with FCM successfully and it is starting as I can retrieve the phone Token, that is used to send the notification to.. but when I send notification on Firebase its never received by the phone, not even the test message from Firebase console... My firebase account is correctly linked to APNS using the APNS Key from apple Is there any tutorial on how to use Firebase Push Notification with iOS for Delphi 11 using the NATIVE implementation found on the new unit FMX.PushNotification.FCM.iOS ?? 1 Share this post Link to post
Eric Bonilha 3 Posted October 28, 2021 Looks like Firebase is failing to initialize with this message: 'no valid “aps-environment” entitlement string found for application' I have selected remote-notification on UIBackgroundModes My provisioning certificate does have Push Notification selected... I don't know what to do Share this post Link to post
Eric Bonilha 3 Posted October 28, 2021 That problem I solved, the entitlements was missing: <key>aps-environment</key> <string>development</string> but still, FCM loads with no errors now, but no messages are received.. god... Share this post Link to post
Eric Bonilha 3 Posted October 29, 2021 I was able to receive a push notification, but I had to change this line on FMX.PushNotification.FCM.iOS: procedure TFcmPushService.RequestAuthorizationWithOptionsCompletionHandler(granted: Boolean; error: NSError); begin // if not TiOSHelper.SharedApplication.isRegisteredForRemoteNotifications then TiOSHelper.SharedApplication.registerForRemoteNotifications; end; I had to comment out the line "if not TiOSHelper.SharedApplication.isRegisteredForRemoteNotifications then" Not sure why.. but it was not calling registerForRemoteNotifications ever Share this post Link to post
Joe Sansalone 6 Posted November 13, 2022 I'm also looking to use Firebase push notification for iOS (and Android). Is there a good starting point documentation somewhere? Share this post Link to post
sh17 26 Posted August 22, 2023 I've found this Delphi 11 – Firebase Cloud Messaging ( FCM ) – iOS app Push Notification - Synaptica srl Share this post Link to post