Page 1 of 2

OAuth.io plugin not working on device, ok on genymotion

Posted: Tue Jan 12, 2016 9:54 pm
by Andrew Peacock

Hi,
I've created an app using OauthIO, which I'm getting errors with when running on my device, but not via Genymotion. These are both using the same .apk file and version, which uses the official OAuth.io phonegap plugin, installed using your new plugin functionality.

I've created a test app with only the OAuth.io functionality, nothing else, and it has the same problem.

Screenshot taken from GapDebug is attached showing the error. App ID is c97744c8-9b5e-4b6f-920b-7f92abcafa98 , and I've shared it with support via the settings.

Could you take a look please, as I don't know if anything that is specific to my app that might be causing the problem.

Regards,
Andy

Image


OAuth.io plugin not working on device, ok on genymotion

Posted: Wed Jan 13, 2016 6:57 am
by Bruce Stuart

Andrew ... I've not used the oauth plugin .. But from the looks of the error your syntax in calling the plugin .... Is not the actual name of the plugin in the appery code ... Found usually in cordova _plugins.js ... Just a thought ...Bruce


OAuth.io plugin not working on device, ok on genymotion

Posted: Wed Jan 13, 2016 1:39 pm
by Andrew Peacock

Hi Bruce,
Thanks for replying.

I can't understand why it would work in the Genymotion emulator. This installs the .apk file and runs just like a proper device, so it's odd that it would work OK.

However, I've just checked the cordova_plugins.js (in the Appery IDE source code, anyway), and it only contains the following:

code
cordova.define('cordova/plugin_list', function(require, exports, module) {
module.exports = [
{
"file": "plugins/cordova-plugin-whitelist/whitelist.js",
"id": "cordova-plugin-whitelist.whitelist",
"runs": true
}
];
module.exports.metadata =
// TOP OF METADATA
{
"cordova-plugin-whitelist": "1.0.0"
}
// BOTTOM OF METADATA
});
/code

I'm wondering if this source file is modified during the build process to actually reflect the enabled plugins?

Andy


OAuth.io plugin not working on device, ok on genymotion

Posted: Fri Jan 15, 2016 11:21 pm
by Andrew Peacock

Hi Appery support,
Could you take a look at this please?
Andy


OAuth.io plugin not working on device, ok on genymotion

Posted: Mon Jan 25, 2016 9:55 pm
by Andrew Peacock

Hi support,
Can I get a response please?
Andy


OAuth.io plugin not working on device, ok on genymotion

Posted: Tue Jan 26, 2016 5:29 pm
by Serhii Kulibaba

Hello Andrew,

We are very sorry for the radio silence here!
This plugin works only on JQM projects, but you are using AngularJS project. https://devcenter.appery.io/tutorials...


OAuth.io plugin not working on device, ok on genymotion

Posted: Tue Jan 26, 2016 9:11 pm
by Andrew Peacock

Hi Sergiy,
But it works in Genymotion, in the same AngularJS project. How is that?
Andy


OAuth.io plugin not working on device, ok on genymotion

Posted: Wed Jan 27, 2016 7:02 pm
by Serhii Kulibaba

Could you clarify, how did you install that plugin? Did you add any JS/CSS files?


OAuth.io plugin not working on device, ok on genymotion

Posted: Thu Jan 28, 2016 11:11 pm
by Andrew Peacock

Just via the standard method for importing cordova plugins via the backend control panel. I touched nothing else in the sample project.


OAuth.io plugin not working on device, ok on genymotion

Posted: Fri Jan 29, 2016 8:50 pm
by Serhii Kulibaba

Please share (http://devcenter.appery.io/documentat...) your app with a href="mailto:support@appery.io" rel="nofollow"support@appery.io/a and provide us with the following information:

1) App name
2) Test credentials if login functionality is implemented in your app
3) Detailed steps to reproduce the issue