Code Monkey home page Code Monkey logo

Comments (41)

rsylvian avatar rsylvian commented on September 13, 2024

So for some reasons I had to install the plugin by doing:

cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser.git

instead of

cordova plugin add org.apache.cordova.inappbrowser

that was giving me an error (repo down?) ...
Issue can be closed since the cordova plugin add org.apache.cordova.inappbrowser is working again =)

from ng-cordova-oauth.

fno avatar fno commented on September 13, 2024

even if i install the inappbrowser pugin the other way i still get this exact error message.

the plugin lists with 'cordova plugin list' just fine but the ng0auth returns for every provider with a "Could not find InAppBrowser plugin"

from ng-cordova-oauth.

nraboy avatar nraboy commented on September 13, 2024

Sounds like something is broken in the plugin repository. You may want to open a ticket with Apache Cordova because both are suppose to point to the same place.

Regards,

from ng-cordova-oauth.

TakkuzOld avatar TakkuzOld commented on September 13, 2024

It's not a Cordova fault:
Installing with cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser.git
Gives version 1.0.1-dev.
Installing with cordova plugin add org.apache.cordova.inappbrowser
or the new cordova plugin add cordova-plugin-inappbrowser
Gives version 1.0.0

ngCordova Oauth isn't able to find any of both.
Problem is on check plugin existence:
it checks for org.apache.cordova.inappbrowser while, right now, it's named cordova-plugin-inappbrowser

Changing those lines on ngcordova.js solves the issue.

from ng-cordova-oauth.

blvz avatar blvz commented on September 13, 2024

+1
I've had to create a fork.

from ng-cordova-oauth.

nraboy avatar nraboy commented on September 13, 2024

I'm aware of this, but I haven't had a chance to jump in and fix it. This is only a side project of mine. Should have time this weekend.

from ng-cordova-oauth.

blvz avatar blvz commented on September 13, 2024

No problem, mate. 😉

from ng-cordova-oauth.

TakkuzOld avatar TakkuzOld commented on September 13, 2024

Don't worry... Just sayin' it because I'm a beginner on GitHub. 😜 Thanks.

from ng-cordova-oauth.

joshbuchea avatar joshbuchea commented on September 13, 2024

Latest version of InAppBrowser Plugin was causing issues for me also. Installing as @Takkuz suggested resolved my issues.

from ng-cordova-oauth.

nraboy avatar nraboy commented on September 13, 2024

I pushed a fix to the master.

from ng-cordova-oauth.

blvz avatar blvz commented on September 13, 2024

Thanks a bunch, @nraboy.

from ng-cordova-oauth.

LearningTools avatar LearningTools commented on September 13, 2024

Hi all I have to do to run me I still get the error console InAppBrowser Could not find plugin

from ng-cordova-oauth.

nraboy avatar nraboy commented on September 13, 2024

How are you installing the InAppBrowser plugin?

from ng-cordova-oauth.

LearningTools avatar LearningTools commented on September 13, 2024

cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser.git

so he installed

from ng-cordova-oauth.

nraboy avatar nraboy commented on September 13, 2024

Does it work if you do this instead?:

cordova plugin add org.apache.cordova.inappbrowser

Thanks,

from ng-cordova-oauth.

LearningTools avatar LearningTools commented on September 13, 2024

o.k I try to be like me going

from ng-cordova-oauth.

LearningTools avatar LearningTools commented on September 13, 2024

hello, now displays an error when you press the button

captura de pantalla de 2015-05-08 10 04 51

from ng-cordova-oauth.

nraboy avatar nraboy commented on September 13, 2024

I'm wondering if you're running to the problem people are reporting with the latest Apache Cordova release. Some have reported that they are blocking remote hosts if you don't use their plugin.

Can you tell me if you get the same results when you copy the link from the simulator and paste it into your web browser?

Thanks,

from ng-cordova-oauth.

sameera207 avatar sameera207 commented on September 13, 2024

Had the same issue, finally @nraboy s last suggested command worked 👍

cordova plugin add org.apache.cordova.inappbrowser

thanks heaps for all.. 😄

from ng-cordova-oauth.

developerlaoz avatar developerlaoz commented on September 13, 2024

WARNING: org.apache.cordova.inappbrowser has been renamed to cordova-plugin-inappbrowser. You may not be getting the latest version! We suggest you cordova plugin rm org.apache.cordova.inappbrowser and cordova plugin add cordova-plugin-inappbrowser.

Waiting for ngCordova Update?

from ng-cordova-oauth.

developerlaoz avatar developerlaoz commented on September 13, 2024

It seems [email protected] already fixed it.

from ng-cordova-oauth.

manudefrutosvila avatar manudefrutosvila commented on September 13, 2024

I have installed from bower

"name": "ngCordova",
"version": "0.1.17-alpha",
"homepage": "http://ngCordova.com/",

but it seems that the source code differs form ng-cordova release of v0.1.17-alpha

Currently, the release is behind 10 commits of master branch
https://github.com/driftyco/ng-cordova/releases/tag/v0.1.17-alpha

and it looks like the code that checks inappbrowser is installed has changed since then.

in the release of 0.1.17-alpha it is still

if (cordovaMetadata.hasOwnProperty("org.apache.cordova.inappbrowser") === true) {

instead of the line that checks for the new name of the plugin and also for the old one

if($cordovaOauthUtility.isInAppBrowserInstalled(cordovaMetadata) === true) {

from ng-cordova-oauth.

nraboy avatar nraboy commented on September 13, 2024

Hey @manudefrutosvila,

I have no control over Ionic's versioning cycle since I have no affiliation with them. I encourage you do one of three things:

  1. Use ng-cordova-oauth
  2. Use the master branch of ng-cordova
  3. Ask Ionic to tag a new version on ng-cordova

Regards,

from ng-cordova-oauth.

 avatar commented on September 13, 2024

So I was trying this project out after going to your blog, https://github.com/nraboy/ng-cordova-facebook-example. The ng-cordova.min.js (0.1.20-alpha) included within the project threw a "Could not find InAppBrowser plugin" error. I updated to the latest https://github.com/driftyco/ng-cordova (v0.1.23-alpha) & it is still throwing an error.

throughout the ng-cordova.js

var cordovaMetadata.cordova.require("cordova/plugin_list").metadata;

is returning an empty object, so

 if(cordovaMetadata.hasOwnProperty("cordova-plugin-inappbrowser") === true)

is returning the error message 'InAppBrowser could not find plugin'.

cordovaMetadata.cordova.require("cordova/plugin_list")

contains the plugin in an array however. Is this an ng-cordova issue then?

from ng-cordova-oauth.

EdHubbell avatar EdHubbell commented on September 13, 2024

@vgport is right on - I changed

                    var cordovaMetadata = cordova.require("cordova/plugin_list").metadata;
                    if(cordovaMetadata.hasOwnProperty("cordova-plugin-inappbrowser") === true) {

to

                    if(cordova.InAppBrowser) {

and I'm back up and running. The code I had was working and fine, but when I updated cordova last week it all went wonky. My cordova version is 5.4.0.

And thanks @nraboy for the project - Very useful.

from ng-cordova-oauth.

nraboy avatar nraboy commented on September 13, 2024

This issue is being looked into.

from ng-cordova-oauth.

thiphariel avatar thiphariel commented on September 13, 2024

Hi. @EdHubbell solution works here, but only on Android 6-.

On Marshmallow, browser opens but "webpage not available"
https://cloud.githubusercontent.com/assets/4220068/7539122/52435222-f56a-11e4-8209-07c497475a32.png

from ng-cordova-oauth.

xunxdd avatar xunxdd commented on September 13, 2024

image

however, var cordovaMetadata = cordova.require("cordova/plugin_list").metadata;

cordovaMetaddata does not contains the inappbrowser, as a result, auth broke everytime.

Does anyone know why?

thanks

from ng-cordova-oauth.

nraboy avatar nraboy commented on September 13, 2024

@matheusrocha89 and I are working on a fix. This is an issue introduced in the latest version of Apache Cordova. Earlier versions should not be suffering from this.

Regards,

from ng-cordova-oauth.

xunxdd avatar xunxdd commented on September 13, 2024

thanks a lot!!!

from ng-cordova-oauth.

cabbabu avatar cabbabu commented on September 13, 2024

@nraboy a, also running thru the same issue. Could not find inappbroswer plugin in IOS..am awaiting for your response on the fix...

from ng-cordova-oauth.

matheusrocha89 avatar matheusrocha89 commented on September 13, 2024

@xunxdd , @cabbabu We are testing a new version with this fix to release. You will download this version soon.

from ng-cordova-oauth.

xunxdd avatar xunxdd commented on September 13, 2024

thanks a lot, really appreciated!

from ng-cordova-oauth.

jmarczew avatar jmarczew commented on September 13, 2024

Just FYI, the if(cordova.InAppBrowser) solution works for me on Cordova 5.4.0 and Android Lollipop 5.1.1. Thanks @EdHubbell.

from ng-cordova-oauth.

nraboy avatar nraboy commented on September 13, 2024

Maybe everyone can clear something up for me because I honestly don't know the answer to this.

Must cordova.InAppBrowser be wrapped in an onDeviceReady or IonicPlatform.ready first? My approach with the meta that worked in previous versions did not require plugins to be ready. It just checked the meta to see if they were installed.

Requiring the plugin to be ready to check if it exists is probably not a good long term solution to this. However, maybe cordova.InAppBrowser doesn't fall victim to this.

Thanks,

from ng-cordova-oauth.

jmarczew avatar jmarczew commented on September 13, 2024

Hi @nraboy, from my tests cordova.InAppBrowser does need to be wrapped in IonicPlatform.ready first. Though I also found that cordova.require("cordova/plugin_list") needs to be wrapped in that as well (i.e., if I call it from outside I get an error).

from ng-cordova-oauth.

geekyspartan avatar geekyspartan commented on September 13, 2024

Temporary solution : using old version of cordova
npm uninstall cordova -g
npm install -g [email protected]

from ng-cordova-oauth.

mjaverto avatar mjaverto commented on September 13, 2024

+1 @Spartan1234 that works for me.

from ng-cordova-oauth.

yonihei avatar yonihei commented on September 13, 2024

+1 to downgrading to cordova 5.3.3
$cordovaOauth.instagram has begun working again
thx :)

from ng-cordova-oauth.

vikey89 avatar vikey89 commented on September 13, 2024

+1 to downgrading to cordova 5.3.3

from ng-cordova-oauth.

nraboy avatar nraboy commented on September 13, 2024

This should be corrected in staging version 0.2.0 found in #167.

I encourage you to test it out.

from ng-cordova-oauth.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.