marcick Well-Known Member Licensed User Longtime User Mar 7, 2016 #1 Not sure where to post this question ... When a device register to the pushserver, is its token permanent or will it expires after some time ? Second question: With the code below that I see in App_Start of push server, I expect to be logged a list of the token. But nothing is logged and the db contains token for sure. Any error ? Code: For Each row() As String In DBUtils.ExecuteMemoryTable(db, "SELECT name FROM sqlite_master WHERE type='table'", Null, 0) Log($"Table: ${row(0)}"$) Next
Not sure where to post this question ... When a device register to the pushserver, is its token permanent or will it expires after some time ? Second question: With the code below that I see in App_Start of push server, I expect to be logged a list of the token. But nothing is logged and the db contains token for sure. Any error ? Code: For Each row() As String In DBUtils.ExecuteMemoryTable(db, "SELECT name FROM sqlite_master WHERE type='table'", Null, 0) Log($"Table: ${row(0)}"$) Next
I inakigarm Well-Known Member Licensed User Longtime User Mar 7, 2016 #2 1) It seems that the token expiring policy are not clear (http://stackoverflow.com/questions/30024729/when-does-an-android-gcm-token-expire); I suppose that B4J/B4A have to deal with 2) This line displays the name of the table that contains the Tokens items, not the Tokens items (because of Code: FROM sqlite_master WHERE type="table" Upvote 0
1) It seems that the token expiring policy are not clear (http://stackoverflow.com/questions/30024729/when-does-an-android-gcm-token-expire); I suppose that B4J/B4A have to deal with 2) This line displays the name of the table that contains the Tokens items, not the Tokens items (because of Code: FROM sqlite_master WHERE type="table"
marcick Well-Known Member Licensed User Longtime User Mar 7, 2016 #3 So, what is that line intended for ? ... Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Mar 8, 2016 #4 The code you posted is not relevant. It was left by mistake. You can see the code that retrieves the tokens in the Send module. Currently the limit is set to 300 days. You can change the value of DAYS_LIMIT. Note that the feedback handler will delete tokens based on Apple feedback service. Upvote 0
The code you posted is not relevant. It was left by mistake. You can see the code that retrieves the tokens in the Send module. Currently the limit is set to 300 days. You can change the value of DAYS_LIMIT. Note that the feedback handler will delete tokens based on Apple feedback service.