Hi Wagner,
I've been looking at getting our app working on IOS and the first problem that I am seeing is occasionally we are getting duplicated ID's. Is this something that you have had reports of? (We are not using the native SQLite driver that you did for Aurelius but the one that comes with FireDac as I was thinking about encrypting it on the phone at some stage.) It works fine on Android and with Windows. Here's an extract of the log showing it happening.
------------ SQL Start------------
INSERT INTO GC_LOAD_ITEM ( ID, CAPTION, DISPLAY_LABEL, ITEM_GROUP, MASTER_ID, MOBILE_DEVICE_ID, PICKED, TABLE_ID, TABLE_NAME, TICKET_DATA_TYPE, TICKET_NUMBER) VALUES ( :p1, :p2, :p3, :p4, :p5, :p6, :p7, :p8, :p9, :p10, :p11)
p1 = "{3A0A39C5-C25A-ED11-AB83-4E3C62B67329}" (ftFixedChar)
p2 = "" (ftString)
p3 = "Haulier" (ftString)
p4 = "1" (ftInteger)
p5 = "{3A0A39C5-C249-ED11-AB83-4E3C62B67329}" (ftFixedChar)
p6 = "{3A0A029A-5F71-4396-ADB5-D341B000A880}" (ftFixedChar)
p7 = "" (ftMemo)
p8 = "0" (ftInteger)
p9 = "HAULIER" (ftString)
p10 = "Caption" (ftString)
p11 = "23019" (ftInteger)
------------ SQL End ------------
[3/27/23 9:42:25 AM][ThreadId:131351104][Trace]
------------ SQL Start------------
INSERT INTO GC_LOAD_ITEM ( ID, CAPTION, DISPLAY_LABEL, ITEM_GROUP, MASTER_ID, MOBILE_DEVICE_ID, PICKED, TABLE_ID, TABLE_NAME, TICKET_DATA_TYPE, TICKET_NUMBER) VALUES ( :p1, :p2, :p3, :p4, :p5, :p6, :p7, :p8, :p9, :p10, :p11)
p1 = "{3A0A39C5-C25A-ED11-AB83-4E3C62B67329}" (ftFixedChar)
p2 = "" (ftString)
p3 = "Vehicle" (ftString)
p4 = "1" (ftInteger)
p5 = "{3A0A39C5-C249-ED11-AB83-4E3C62B67329}" (ftFixedChar)
p6 = "{3A0A029A-5F71-4396-ADB5-D341B000A880}" (ftFixedChar)
p7 = "" (ftMemo)
p8 = "0" (ftInteger)
p9 = "VEHICLE" (ftString)
p10 = "Caption" (ftString)
p11 = "23019" (ftInteger)
------------ SQL End ------------
[3/27/23 9:42:25 AM][ThreadId:131351104][Error]FireDac Error
Message:
[FireDAC][Phys][SQLite] ERROR: UNIQUE constraint failed: GC_LOAD_ITEM.ID
SQL:
INSERT INTO GC_LOAD_ITEM ( ID, CAPTION, DISPLAY_LABEL, ITEM_GROUP, MASTER_ID, MOBILE_DEVICE_ID, PICKED, TABLE_ID, TABLE_NAME, TICKET_DATA_TYPE, TICKET_NUMBER) VALUES ( :p1, :p2, :p3, :p4, :p5, :p6, :p7, :p8, :p9, :p10, :p11)
Params:
P1={3A0A39C5-C25A-ED11-AB83-4E3C62B67329}
P2=
P3=Vehicle
P4=1
P5={3A0A39C5-C249-ED11-AB83-4E3C62B67329}
P6={3A0A029A-5F71-4396-ADB5-D341B000A880}
P7=
P8=0
P9=VEHICLE
P10=Caption
P11=23019
ClassName=ESQLiteNativeException
ErrorCode=1555
FDObjName=TFDQuery($39845E00)
Regards
Steve