This is example to test this issue on Android and iOS. Sorry, that not did it early
Facebook token test.zip (4.4 KB)
In this test you should run app, login to facebook and restart the game
Android output logs:
Start of facebook test iOS issue with access token
Login to facebook game id: 551639031949279
This is id of my application: 551639031949279
Test next issue:
If we already logined into facebook. On android I will have token at game start
But if we playing on iOS devices, access_token will be nil
Check access token in facebook
My access token: nil
Check token in game save
Dont have facebook data. Please press login
-- Login to Facebook
Success login to facebook. My token: {MY_CORRECT_TOKEN_HERE}
I will store access token via sys.save to load in in next game start
Now manually close the game and reopen it to test access_token
If I reboot engine with msg.post:reboot, facebook access token on iOS will be exist at start. This is strange
-- Restart the game
Start of facebook test iOS issue with access token
Login to facebook game id: 551639031949279
This is id of my application: 551639031949279
Test next issue:
If we already logined into facebook. On android I will have token at game start
But if we playing on iOS devices, access_token will be nil
Check access token in facebook
-- On Android we have token at stat
My access token: {MY_CORRECT_TOKEN_HERE}
Check token in game save
I have stored access token in game data
Stored token: {MY_CORRECT_TOKEN_HERE}
And iOS output logs:
Start of facebook test iOS issue with access token
Login to facebook game id: 551639031949279
This is id of my application: 551639031949279
Test next issue:
If we already logined into facebook. On android I will have token at game start
But if we playing on iOS devices, access_token will be nil
Check access token in facebook
My access token: nil
Check token in game save
-- From prev. test I have facebook data. How can I clear iOS app data? :)
I have stored access token in game data
Stored token: {MY_CORRECT_TOKEN_HERE}
-- Login to Facebook
On facebook login event
Success login to facebook. My token: {MY_CORRECT_TOKEN_HERE}
I will store access token via sys.save to load in in next game start
Now manually close the game and reopen it to test access_token
If I reboot engine with msg.post:reboot, facebook access token on iOS will be exist at start. This is strange
-- Restart the game
Start of facebook test iOS issue with access token
Login to facebook game id: 551639031949279
This is id of my application: 551639031949279
Test next issue:
If we already logined into facebook. On android I will have token at game start
But if we playing on iOS devices, access_token will be nil
Check access token in facebook
-- Dont have token at start at iOS
My access token: nil
Check token in game save
I have stored access token in game data
Stored token: {MY_CORRECT_TOKEN_HERE}