GameThrive.IdsAvailableCallback(IdsAvailable) only run once?

The GameThrive.IdsAvailableCallback(IdsAvailable) event.

Does it only call that function once when app is run for the very first time and registered successfully? I was assuming it was on each start but from my testing that is not the case.

If its only the first run, is there a way of getting the GameThrive player ID (with Corona)?

Also Is there any way of getting the GameThrive player ID from the players device ID using the (server) API? 

Thanks! Loving GameThrive…

Yes, it should get called every time the app is started after the app successfully reaches our server (every time your app is started and has an internet connection).

If it’s still not working for you, could you let me know what your device log shows when the app is started?

I’m seeing this in log so it looks like its registering OK: 

Registering player with event.token: myDeviceID

I’m going to test a bit more to see if I’m doing something dumb.

You can also loop through the values GameThrive has saved by looking through the GameThrive.db sqlite table in your app:

local db = sqlite3.open( system.pathForFile(“GameThrive.db”, system.DocumentsDirectory) )

for row in db:nrows(“SELECT * FROM GameThriveSettings”)do

  print(row.name)

  print(row.value)

end

 

The player’s GameThrive ID will have the name “player_id”, and their device push token will have the name “identifier”. 

I’m sorry, I was being really really dumb, I forgot to enable my debug print statements. Thank you for the help.

Yes, it should get called every time the app is started after the app successfully reaches our server (every time your app is started and has an internet connection).

If it’s still not working for you, could you let me know what your device log shows when the app is started?

I’m seeing this in log so it looks like its registering OK: 

Registering player with event.token: myDeviceID

I’m going to test a bit more to see if I’m doing something dumb.

You can also loop through the values GameThrive has saved by looking through the GameThrive.db sqlite table in your app:

local db = sqlite3.open( system.pathForFile(“GameThrive.db”, system.DocumentsDirectory) )

for row in db:nrows(“SELECT * FROM GameThriveSettings”)do

  print(row.name)

  print(row.value)

end

 

The player’s GameThrive ID will have the name “player_id”, and their device push token will have the name “identifier”. 

I’m sorry, I was being really really dumb, I forgot to enable my debug print statements. Thank you for the help.