javascript - IOAuth.IO Integration with IonicAngular Hybrid App - Stack Overflow

I am having a really difficult time getting the cordova plugin authored by OAuth.io () to work within t

I am having a really difficult time getting the cordova plugin authored by OAuth.io () to work within the an ionic phone build. Everything is setup based off of the desktop version of the JS file they provide, wrapped in an Angular service for ease of unit testing, with another factory handling the actual flow of login/logout etc...

The issue I am running into is that now after switching to the plugin version and removing the referenced JS version, nothing works any longer. I can no longer pull up the facebook login page, nor have the global object 'OAuth' recognized outside of the injected service. The furthest I got in troubleshooting the issue is that the OAuth object is created, at least initially as I can log out the object, but anything after that does not appear to be recognized.

My web (working) version of code example is on plunker here:

Any thoughts on further troubleshooting or if there is another way of acplishing this goal would be greatly appreciated!

I am having a really difficult time getting the cordova plugin authored by OAuth.io (https://github./oauth-io/oauth-phonegap) to work within the an ionic phone build. Everything is setup based off of the desktop version of the JS file they provide, wrapped in an Angular service for ease of unit testing, with another factory handling the actual flow of login/logout etc...

The issue I am running into is that now after switching to the plugin version and removing the referenced JS version, nothing works any longer. I can no longer pull up the facebook login page, nor have the global object 'OAuth' recognized outside of the injected service. The furthest I got in troubleshooting the issue is that the OAuth object is created, at least initially as I can log out the object, but anything after that does not appear to be recognized.

My web (working) version of code example is on plunker here: http://plnkr.co/edit/B4HdkkBKDP3Xv2riQGui?p=preview

Any thoughts on further troubleshooting or if there is another way of acplishing this goal would be greatly appreciated!

Share Improve this question asked May 13, 2014 at 2:54 BrianBrian 2,3056 gold badges30 silver badges51 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 9 +50

We just published the version 0.2.0 of the OAuth.io Cordova/Phonegap SDK, which fixes the issue with Ionic.

Now you should be able to use the cordova plugin in a ionic app without any trouble, like this:

$ cordova plugin add https://github./oauth-io/oauth-phonegap

This version also contains features that were missing from the sdk, like the cache and the unified user info method.

You can get more information about all this on our github page:

https://github./oauth-io/oauth-phonegap

Hope this helps :)

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745459990a4628663.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信