Gary Wardell 0 Posted August 21, 2020 (edited) Hi, I was given this link that helped me get my Android test app working. http://docwiki.embarcadero.com/RADStudio/Rio/en/Firebase_Android_Support Now I need to build an iOS app and get that working. I did some searching on docwiki but found nothing about iOS alerts in Rio. I did find some things about Delphi 8. Can anyone provide me with a link about building an iOS app to receive push notifications from Firebase using Rio 10.2. Or 10.3. Thanks, Gary Edited August 21, 2020 by Gary Wardell Share this post Link to post
Dave Nottage 563 Posted August 21, 2020 Push notifications using Firebase for iOS is yet to be implemented in Delphi. I have an implementation using Embarcadero's infrastructure, described here: https://delphiworlds.com/2020/01/expanding-embarcaderos-fcm-implementation-revisited/ Share this post Link to post
Gary Wardell 0 Posted August 21, 2020 Hi Dave, Oh my. I was using Kinvey till they raised their prices out of my sight. I seem to have more users using iOS than Android and the usage has way dropped since I left kinvey. So does your article actually work on iOS in the real world? I have a test Android app written in Rio 10.2 using Firebase that seems to work great. Will you be available if I need help in getting it to work? Gary Share this post Link to post
Dave Nottage 563 Posted August 21, 2020 8 hours ago, Gary Wardell said: So does your article actually work on iOS in the real world? It has been, yes. 8 hours ago, Gary Wardell said: Will you be available if I need help in getting it to work? I'll help where I can Share this post Link to post
Gary Wardell 0 Posted August 21, 2020 6 hours ago, Dave Nottage said: I'll help where I can That article doesn't give directions on how to implement iOS the way Marco's blog post does for Android. > The new demo can be found here. I guess I have to download the demo and sort it out from that. I am not clear on what link to use to download the whole project. Or do I have to download each file individually. Gary Share this post Link to post
Dave Nottage 563 Posted August 21, 2020 2 hours ago, Gary Wardell said: I am not clear on what link to use to download the whole project. Or do I have to download each file individually. The best way forward is to download the repository: https://github.com/DelphiWorlds/KastriFree Either via the download link (from the green "Code" button), or preferably use a Git client, like Fork: https://git-fork.com/ Once you have the repository: Unzip Firebase.6.16.0.zip in the ThirdParty/Firebase/iOS folder. Put your GoogleServices.info.plist from your Firebase Console project in the Resources folder of the demo Load the demo and compile Share this post Link to post
Gary Wardell 0 Posted September 18, 2020 On 8/21/2020 at 8:08 AM, Dave Nottage said: I'll help where I can Hi, I'm trying to build a simple test app without the alerts, just to make sure it runs. But I am getting an error in the Provisioning saying the Bundle Identifier doesn't match. What is the Bundle Identifier and how do I find out what it should be. Gary Share this post Link to post
Dave Nottage 563 Posted September 18, 2020 36 minutes ago, Gary Wardell said: What is the Bundle Identifier and how do I find out what it should be The bundle identifier needs to match the identifier given to the App Id that was created for the application on the Apple Developer website, e.g I created this one for testing Firebase Cloud Messaging (for myself - you need to use your own): The convention is to use reverse domain notation (if you have one), or at least something that should be globally (literally) unique. This is also the App Id that you would have enabled Push Notifications for: Share this post Link to post
Gary Wardell 0 Posted September 18, 2020 13 minutes ago, Dave Nottage said: The bundle identifier needs to match the identifier given to the App Id Hi, Ok, that fixed that. Now I am getting this. What is wrong. What am I missing. Or what needs to be updated. Gary paclient command line for "MacInCloud" c:\program files (x86)\embarcadero\studio\20.0\bin\paclient.exe -u8 --Put="/Users/admin/Library/MobileDevice/Provisioning Profiles/85f6874d-4c0d-4d84-82fc-7f8d699f0edc.mobileprovision,App4.app,embedded.mobileprovision" MacInCloud paclient command line for "MacInCloud" c:\program files (x86)\embarcadero\studio\20.0\bin\paclient.exe -u8 --codesign="App4.app,'iPhone Distribution: Gary Wardell (H97PU85Q74)',App4.app\..\App4.entitlements" MacInCloud [PAClient Error] Error: E0264 Unable to execute '"/usr/bin/codesign" --deep -s "iPhone Distribution: Gary Wardell (H97PU85Q74)" -f "/Users/admin/PAServer/scratch-dir/gwardell-MacInCloud/App4.app"' (Error 1) [PAClient Error] Error: E0264 iPhone Distribution: Gary Wardell (H97PU85Q74): ambiguous (matches "iPhone Distribution: Gary Wardell (H97PU85Q74)" and "iPhone Distribution: Gary Wardell (H97PU85Q74)" in /Users/admin/Library/Keychains/login.keychain) Failed Elapsed time: 00:02:15.8 Share this post Link to post
Dave Nottage 563 Posted September 18, 2020 (edited) You appear to have 2 certificates on the Mac that are the same. Perhaps one is expired. To check this, on the Mac in Applications/Utilities, run the Key Chain Access app, ensure that expired certificates are listed by clicking Show Expired Certificates in the View menu, and select login in the Keychains list, and My Certificates in the Category list: For any expired certificates, right-click them and click "Delete" Edited September 18, 2020 by Dave Nottage Share this post Link to post