Anto90 0 Posted 22 hours ago hello, i want to use sqllite with my app. I use also fcm notification with kastri FCM.ShowBannerIfForeground := True; FCM.OnMessageReceived := FCMMessageReceivedHandler; FCM.OnStarted := FCMStartedHandler; FCM.OnTokenReceived := FCMTokenReceivedHandler; FCM.Start; I add the line above on form create ok it goes. I add datamodule with fdconnection and driver id sqllite the app on startup crash. I rem the fcm.start and app does not crash anymore. if i remove FireDAC.Phys.SQLite from uses of datamodule app does not crash Can be a correlation with fcm and sqllite ? In Android is ok. The form is not created at application startup. If i removed all uses related to sqlite from datamodule the app starts normally with fcm.start not rem. i use delphi 12.2 Thank you Share this post Link to post
Rollo62 560 Posted 22 hours ago Have you also added the featured file "Sqlite driver" in the deployment? https://youtu.be/--HfSCnp24o?t=163 Share this post Link to post
Dave Nottage 590 Posted 22 hours ago 19 minutes ago, Anto90 said: Can be a correlation with fcm and sqllite ? Yes, you need to use static linking: https://docwiki.embarcadero.com/RADStudio/Athens/en/Connect_to_SQLite_database_(FireDAC)#Driver_Linkage Share this post Link to post
Anto90 0 Posted 17 hours ago (edited) thank you. I set from FDPhysSQLiteDriverLink1 EngineLinkage slStatic i saw in delphi lib installation libsqlite.a is correct but i still having crash. There is some other configuration that i had to do? Thank you Edited 15 hours ago by Anto90 Share this post Link to post
Dave Nottage 590 Posted 7 hours ago 14 hours ago, Dave Nottage said: Yes, you need to use static linking Sorry, I had that backwards - static linking causes the issue, or at least it did in the early days. When I have time, I'll check which way around it is, and/or whether or not it will work at all. Share this post Link to post
Dave Nottage 590 Posted 1 hour ago 5 hours ago, Dave Nottage said: When I have time, I'll check which way around it is, and/or whether or not it will work at all. Using a value of slDynamic for FDPhysSQLiteDriverLink1 EngineLinkage works for me Share this post Link to post
Anto90 0 Posted 9 minutes ago Thank you. This could be a issue with an apple policy distribution? Share this post Link to post