Hi!
I’m currently updating my app to use the new GPGS plugin and it works fine on Android (initialises correctly, logs the user in and displays leaderboards when requested), however there seems to be an odd issue with it under iOS.
Currently the logs suggest that the plugin initialises fine, but then the login requests seem to go nowhere. The logs show that there _is_ a login request, but the listener/callback is never called and any of the behaviour that seems to be suggested by the docs (eg. Safari being opened to let the user specify login details) never occurs either.
If the login request is made with the ‘userInitiated’ flag specified as true then the log simply state this:
[Device] plugin.gpgs: init
[Device] plugin.gpgs: login()
[Device] plugin.gpgs: Is table
[Device] plugin.gpgs: luaListener
[Device] plugin.gpgs: userInitiated
[Device] ERROR: Generic error
With the ‘userInitiated’ not set, it returns this:
[Device] plugin.gpgs: init
[Device] plugin.gpgs: login()
[Device] plugin.gpgs: Is table
[Device] plugin.gpgs: luaListener
[Device] plugin.gpgs: Not userInitiated
[Device] Received Media Remote client notification kMRPlaybackQueueChangedNotification
[Device] Received Media Remote client notification kMRMediaRemoteRegisteredCommandHandlersDidChangeNotification
[Device] Received Media Remote client notification kMRMediaRemoteRegisteredCommandHandlersDidChangeNotification
[Device] Suppressing kMRMediaRemoteSupportedCommandsDidChangeNotification – client process did not ask to receive these notifications[Device] Suppressing kMRMediaRemoteSupportedCommandsDidChangeNotification – client process did not ask to receive these notifications.
[Device] #WK: Starting frame load, frame = 0x1133af180, main = 0
[Device] WF: _WebFilterIsActive returning: NO
[Device] #WK: Finished frame load without error, frame = 0x1133af180, main = 0
[Device] [0x10317ca00] Created session
[Device] #WK: Finished frame load without error, frame = 0x10f6c8000, main = 1
[Device] [0x10317ca00] Releasing session
[Device] [0x102981800] Created session
I don’t know if the ‘Generic Error’ that is returned when ‘userInitiated’ is specified is related to the request, but I assume so as it’s the next thing that occurs. Nor do I know if the Media Remote client notification errors are related, they are simply the next part of the log.
I’m fairly certain the build.settings for the OAuth2 config is correct (ie. I’ve doubled checked it, but nothing seems to make any difference).
Any thoughts?
Thanks in advance!