Titanium JIRA Archive
Appcelerator Community (AC)

[AC-479] Ti.Gigya Module (Android): Not able to login multiple times on Android 5.0 and up

GitHub Issuen/a
TypeBug
Priorityn/a
StatusResolved
ResolutionCannot Reproduce
Resolution Date2015-11-05T16:31:02.000+0000
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsn/a
ReporterWouter Versluijs
AssigneeJebun Naher
Created2015-10-26T15:18:25.000+0000
Updated2015-11-18T04:51:14.000+0000

Description

This issue is regarding the following Titanium module: https://github.com/appcelerator-modules/ti.gigya. When using this module to login to Facebook, Twitter, Google Plus or Instagram it seems to work fine when doing it for the first time when calling gigya.login (clean install of the app). But when i logout and try to login again I get the following error:
{
    "errorCode": 400006,
    "errorMessage": "",
    "method": "login"
}

// Information on the gigya docs about this errorcode:
// One of the parameters of this request has been set with a value which is not within the parameter's defined value bounds. Please refer to the method's parameter table, and check the definition of valid values per parameter.
// The error message will include the name of the specific parameter.
the request i'm using is:
gigya.login({
    params: {
        provider: provider
    },
    success: gigyaLoginSuccessHandler,
    error: gigyaLoginFailureHandler
});
in the documentation there isn't any information on what other params are needed. And on Android versions prior to 5 (lollipop) and iOS the login works fine. Any help is appreciated!

Comments

  1. Jebun Naher 2015-11-05

    Hello, We tested this issue in our environment but couldn't reproduce it. [Screenshot](http://postimg.org/image/djc00hqe5/) *Testing Environment:* Appcelerator Command-Line Interface, version 5.0.2 Titanium SDK  Version - 5.0.2.GA Device - Nexus 7 Appcelerator Studio, build- 4.3.1.201509302304 Mac OS X - 10.10.1 module id - ti.gigya-android *Console Log:*
       [INFO] :   chromium: [INFO:CONSOLE(339)] " WARNING - Loading socialize.js without an APIKey parameter is unsupported and may result in an unexpected behavior.  ", source: http://cdn.gigya.com/JS/socialize.js?APIKey= (339)
       [INFO] :   Load
       [INFO] :   undefined
       [INFO] :   APSAnalyticsService: Analytics Service Started
       [INFO] :   APSAnalyticsService: Stopping Analytics Service
       -- End application log -------------------------------------------------------
       TRACE  | titanium exited with exit code 0
       TRACE  | Sending exit signal to titanium process:  28482
       
    Thanks.

JSON Source