Jump to content

Eric Bonilha

Members
  • Content Count

    22
  • Joined

  • Last visited

Everything posted by Eric Bonilha

  1. Eric Bonilha

    No exception handling with server crash

    @Kas Ob. I have been using EurekaLog and unfortunately this error is never caught, maybe because its external, but even when selecting Catch Handled Exceptions is selected, it also doesn't work. I didn't try "Handle every SafeCall exception" but in the help file they say this option doesn't do anything if Catch Handled Exceptions is selected. In my debugs session, it looks like it could be related to my multi-threading approach that might be wrong and while it works fine when no SSL is being used, looks like the SSL library does't like it and we might be doing some operation on the socket coming from different thread contexts
  2. Eric Bonilha

    No exception handling with server crash

    @Angus Robertson did you find a solution for this issue? I'm having the absolute same problem with my application, using OpenSSL DLL and ICS Server @FPiette In our case, the application will randomly crash with Exception code: 0xc0000374 which is a Heap Corruption. We are having this issue for years and we could never find the source of it.. We are intensively debugging for the past few days and what I could find is that the problem doesn't seem to happen if sockets are all running single-threaded, but once we have a multi-threading scenario, thats when this error starts happening.. but there is no simple way to reproduce the error as its not deterministic, its very random. This error happens on the server side (Its an ICS TCP server running our custom protocol).
  3. Hello We are using ICS 8.68 (I just saw that its old now...) and we have encountered a problem with OpenSSL that is hanging the thread where its running (In this case, the main thread). I'm not sure if this is something that was already fixed in newer versions, but it looks like it hangs inside the OpenSSL library I was able to catch it with EurekaLog (image attached). Does anyone have any idea if this can still happen? Looks like this happened when the client connection was already broken (This is on SERVER SIDE) and the server tried to send a packet and ICS closed the connection on the server side after identifying it was already dead Thanks
  4. Eric Bonilha

    SSL Hanging on close

    Thank you for all the answers, we will give it a try with ICS 9 and we will also check WER if we can disable it and check the configurations. I will keep you updated with our testing, but you gave some very good insights
  5. Eric Bonilha

    Firebase Push Notification for IOS

    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 ??
  6. Eric Bonilha

    iOS 15.1

    Hello I have a current issue with our app that is not working properly with iOS 15 and iPhone 12 and 13 (Any other works fine)... So, I updated my tools and the phone I use for development. I'm using XCode 13.1 and Delphi 11 with the latest patch from today applied and an iPhone 7 with iOS 15.1 I'm trying to deploy a BLANK application for testing the new tools and while the compilation and deployment works, as soon as the app runs, it crashes (blank, empty form). When debugging, I got an Error 6 while app is initializing. "Project1 raised exception class 6" This problem happens both with Delphi 10.4.2 and Delphi 11... Is it because of the new iOS 15? Have you guys had this issue already? iOS 15.1 was just released today and I couldn't update my development phone to 15.0.2 that is what my customers complained about, so I had to update to 15.1
  7. Hello all I got a strange problem with our app.. We use ShowModal (That is supposedly supported by iOS, but even for Android, internally it will use Show because its not supported) to display a form and this has always worked.. Many customers now reported our app will crash on iPhone 12 and 13 with iOS 15.. After debugging I found that ShowModal will hang / crash the app, but ONLY on iPhone 12 and iPhone 13 with IOS 15.. If I try on iPhone 11 or 7 for example using iOS 15 (same version, I tried on 15.0.2 and 15.1) it works fine.. Only crashes on iPhone 12 and 13 Did any of you encounter such issue as well? I solved by not using ShowModal, but only Show,
  8. Eric Bonilha

    Firebase Push Notification for IOS

    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
  9. Eric Bonilha

    Firebase Push Notification for IOS

    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...
  10. Eric Bonilha

    Firebase Push Notification for IOS

    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
  11. Eric Bonilha

    ShowModal hang/crashes on iOS 15 with iPhone 12 / 13

    Thanks Dave. I don't have an iPhone 12 or 13 to test, I was relying on my customers phones (doing testflights) to try to fix the issue It will be interesting to understand why ShowModal only doesn't work on iPhone 12 and 13, while previous like 11 will work just fine with the same OS version
  12. Eric Bonilha

    Full screen with iOS 15

    Hello I will help you with one of your questions for Monterey I had a huge issue that I needed to recompile my app but I couldn't use XCode 13 on Catalina, so I updated to Monterey and then used XCode 13 (and 13.1 as well for testing) and all deployed applications were crashing... I has to format my mac to original OS, then install Big Sur manually from USB and use XCode 13.0 I would not recommend updating to Monterey. But, I was using Delphi 11. But I tried Delphi 10.4.2 on Monterey with XCode 13 and it gave the same results, the app compiled and deployed but was crashing when starting.. So I guess Monterey is really not supported. Delphi 10.4.2 supports Big Sur as well, so I would update to Big Sur instead of Monterey, then you can use XCode 13
  13. Eric Bonilha

    Deploy Delphi 11 iOS 15 XCode 13

    Already found out my provisioning profile was expired
  14. Eric Bonilha

    Deploy Delphi 11 iOS 15 XCode 13

    KenR I'm having the same issue with error 0x e8008015: A valid provisioning profile for this executable was not found. How did you solve it?
  15. Eric Bonilha

    iOS 15.1

    Its working now... I had to format my Mac and install Big Sur manually (I was using Monterey).. then I installed XCode 13.0 and now the application works fine
  16. Eric Bonilha

    iOS 15.1

    Dave, thanks... something I didn't mention is that I had to upgrade to Monterey and apparently its not supported by Delphi... I couldn't update to XCode 13 on Catalina, and couldn't upgrade directly to Big Sur, but I found out that I can upgrade manually.. so, I'm formatting my Mac again with original Catalina, then I will upgrade manually to Big Sur and try again..
  17. Eric Bonilha

    iOS 15.1

    KenR, so when you build a blank application and deploy to iOS 15 with XCode 13 from Delphi 11, it crashes as well and doesn't run?
  18. Eric Bonilha

    iOS 15.1

    Same results with iPhone 11... the blank app just crahes when opening.. in fact I can't even debug it because it crashes before Application.Initialize is even called
  19. Eric Bonilha

    iOS 15.1

    I got the same results with XCode 13.0... Blank application is compiled, deployed to the phone, but it crashes when it opens.. I will try on another iphone now
  20. Eric Bonilha

    iOS 15.1

    Ken, I'm using XCode 13.1 Everything in the compilation and deployment goes smooth but when running the application it crashes Dave, Maybe it could be the XCode, but I don't know if I can downgrade to 13.0 from 13.1 as I'm using XCode 13.1 because that is what was available to me.. I noticed that the apps that were previously compiled works on iOS 15.1 but if I try to make a new app, blank form, with this toolchain (Delphi 11, XCode 13.1 for iOS 15.1 on iPhone 7) then the app crashes. I will try on another iPhone just in case and will try to downgrade XCode
  21. Eric Bonilha

    iOS handle incoming url

    @vfbb @Dave Nottage Thank you very much for both of you for your invaluable help. I was able to successfully make the Universal Links within my application. Indeed I had to change Delphi files but I made a local copy of the files and attached to my application (so FMX and RTL source is not changed) and when compiling, the compiler will use my local copy of the modified files and it works like a charm. Hopefully Embarcadero will implement these classes within the RTL in the future
  22. Eric Bonilha

    iOS handle incoming url

    @vfbb I'm trying to do the same thing for my app, but I need to use Universal Links because I'm using the same technique for the Android version of my app and a custom scheme under Android does not work inside GMail app (which is primarily where the link to the application will be, inside an e-mail), so I decided to use Universal Links, and while it works fine and its easy in the Android part, I'm struggling with Apple.. I understand that I have to handle the the incoming activity but I could not even reach that part... I have no idea on how to setup the application itself to be able to receive universal links. There are thousands of tutorials for XCode with native development but I didn't find anything when using Delphi Since you have done the same thing would you explain how did you add the link support in your application? Do we need to change the info.plist.TemplateiOS.xml in some way? I know there is a file that I have to host in my website, but I'm still struggling with the first step, that is to prepare the app to enable universal links Any tips are appreciated! Thanks
×