-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BUG : Fails to Send Events on tvOS (only real device) #358
Comments
Hey @saeedmalas, Seems like all the Sqlite commands were getting failed on the real tvOS device, Can you please share the complete logs for us to debug this issue ? |
Thank you @desusai7 These are all the problems that appear in the log and are related to RSStack:Error:
|
@saeedmalas, can you open the SQLite database by downloading the container? |
@pallabmaiti |
@saeedmalas, did you upgrade the SDK & facing this issue, or are you facing this issue for the 1st time? |
@pallabmaiti |
I mean to say, you integrate the SDK and tested on a real device for the 1st time and faced the issue or you were using the SDK and suddenly got his issue? |
@pallabmaiti |
Can you change this block of code to this and give us the
|
I tried that and it was: |
Thanks. |
@saeedmalas did you able to solve the issue? |
@pallabmaiti |
@saeedmalas, we are working on this. Can you let us know which Rudder version worked/working for you? |
@pallabmaiti |
@pallabmaiti Note: This error appeared in the version 2.4.2:
|
@saeedmalas, yes this issue is happening with both v1 and v2 of iOS SDKs. We've debugged more into this and figured out that the issue is happening because SDK is unable to create a database itself in the first place. We are tracking this internally, but got delayed due to some other priorities at the moment. We will let you know once we have an update on this. CC @pallabmaiti |
Thank you @desusai7 can you tell me which version you first tried on a real device and it worked without problems? |
Hey @saeedmalas, I'm sorry for the delay on this, we've come up with a fix for this issue and we've just tested it on a real tvOS device and it is working as expected, we will have it released soon after the code freeze and will keep you posted. |
I was working on RS 1.15.1 version on simulator it works correctly sending events while on real machine it shows these errors:
RSStack:Error:RSDBPersistentManager: checkIfStatusColumnExists: SQLite Command Preparation Failed: SELECT COUNT(*) from pragma_table_info("events") where name="status"
RSStack:Error:RSDBPersistentManager: execSQL: SQLite Command Preparation Failed: ALTER TABLE events ADD COLUMN status INTEGER DEFAULT 0
RSStack:Error:RSDBPersistentManager: performMigration: events table migration failed
RSStack:Error:RSDBPersistentManager: saveEvent: SQLite Command Preparation Failed
RSStack:Error:RSDBPersistentManager: clearProcessedEventsFromDB: Failed to clear the processed events from the db
I tried to update the version to 1.17.0, and I tried to try the v2 SDK, but the same errors appear.
tvOS: 16.5
Note: that I did not use SQLite.shutdown().
The text was updated successfully, but these errors were encountered: