Andrew Peacock
Posts: 0
Joined: Thu Jan 09, 2014 10:03 pm

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

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

Bruce Stuart
Posts: 0
Joined: Fri Oct 24, 2014 4:42 am

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

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

Andrew Peacock
Posts: 0
Joined: Thu Jan 09, 2014 10:03 pm

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

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

Andrew Peacock
Posts: 0
Joined: Thu Jan 09, 2014 10:03 pm

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

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

Andrew Peacock
Posts: 0
Joined: Thu Jan 09, 2014 10:03 pm

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

Hi support,
Can I get a response please?
Andy

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

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

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...

Andrew Peacock
Posts: 0
Joined: Thu Jan 09, 2014 10:03 pm

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

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

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

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

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

Andrew Peacock
Posts: 0
Joined: Thu Jan 09, 2014 10:03 pm

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

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

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

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

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

Return to “Issues”