Comments (41)
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.
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.
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.
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.
+1
I've had to create a fork.
from ng-cordova-oauth.
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.
No problem, mate. 😉
from ng-cordova-oauth.
Don't worry... Just sayin' it because I'm a beginner on GitHub. 😜 Thanks.
from ng-cordova-oauth.
Latest version of InAppBrowser Plugin was causing issues for me also. Installing as @Takkuz suggested resolved my issues.
from ng-cordova-oauth.
I pushed a fix to the master.
from ng-cordova-oauth.
Thanks a bunch, @nraboy.
from ng-cordova-oauth.
Hi all I have to do to run me I still get the error console InAppBrowser Could not find plugin
from ng-cordova-oauth.
How are you installing the InAppBrowser plugin?
from ng-cordova-oauth.
cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser.git
so he installed
from ng-cordova-oauth.
Does it work if you do this instead?:
cordova plugin add org.apache.cordova.inappbrowser
Thanks,
from ng-cordova-oauth.
o.k I try to be like me going
from ng-cordova-oauth.
hello, now displays an error when you press the button
from ng-cordova-oauth.
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.
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.
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.
It seems [email protected] already fixed it.
from ng-cordova-oauth.
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.
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:
- Use ng-cordova-oauth
- Use the master branch of ng-cordova
- Ask Ionic to tag a new version on ng-cordova
Regards,
from ng-cordova-oauth.
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.
@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.
This issue is being looked into.
from ng-cordova-oauth.
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.
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.
@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.
thanks a lot!!!
from ng-cordova-oauth.
@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.
@xunxdd , @cabbabu We are testing a new version with this fix to release. You will download this version soon.
from ng-cordova-oauth.
thanks a lot, really appreciated!
from ng-cordova-oauth.
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.
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.
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.
Temporary solution : using old version of cordova
npm uninstall cordova -g
npm install -g [email protected]
from ng-cordova-oauth.
+1 @Spartan1234 that works for me.
from ng-cordova-oauth.
+1 to downgrading to cordova 5.3.3
$cordovaOauth.instagram has begun working again
thx :)
from ng-cordova-oauth.
+1 to downgrading to cordova 5.3.3
from ng-cordova-oauth.
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)
- Twitter oauth not giving me the email HOT 1
- Not able to get email in response in twitter HOT 1
- Login Twitter error HOT 1
- Webpage not loading Facebook Login HOT 2
- How to get refresh token with spotify oauth HOT 3
- Updated Google OAuth Support? HOT 1
- Google errors with "Cannot authenticate via a web browser" HOT 1
- Cannot authenticate via a web browser on device! HOT 8
- "Cannot authenticate via a web browser" HOT 3
- Facebook signin issue in windows platform HOT 2
- How to terminate facebook long lived? HOT 1
- Is Yahoo Oauth comitted?
- Error when loading facebook page HOT 6
- Getting id_token from Microsoft OAuth2.0 using oauthWindowslive
- InAppBrowser not showing firebase authentication in android studio device preview
- Instagram login error (ERR_SPDY_PROTOCOL_ERROR) HOT 1
- Facebook API 2.6 deprecated on 13 July HOT 2
- Facebook requiring https on oauth callback HOT 4
- $cordovaOauth.linkedin returning null data and status -1 in iOS HOT 1
- Office365 login
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ng-cordova-oauth.