Comments (8)
Ah ;) I have lots of experience in Java and doing it the Capacitor way is most uncommon in the Java world.
So I used my actual code for the description as I think it's easier to read. But's your call what you want to use basically it's the same.
Further more this whole think should not be needed as soon as ionic-team/capacitor#952 is implemented. Android plugins should be discovered automatically as they are on iOS.
from generic-oauth2.
As this plugin does not use cordova at all, your issue is most propably no bug I can do anything about.
Anyway here are some tips:
- clean your project
- try to restart your IDE
- clear your caches
- delete your node_modules directory
- XCode 10+. It is most important to always clean the build because XCode caches are not updating by there own.
from generic-oauth2.
I am not using any cordova plugins, as I've mentioned in the description, I have just installed the plugin and ran cap update
, the error was thrown within the console, not my IDE. Besides this was done on a Linux machine. I have noticed that some of the minor details in readme are out of date with the latest capacitor beta versions, perhaps it could be related? I am using beta.13
from generic-oauth2.
I only gave you some tips on how to catch your problem.
I am not using any cordova plugins, as I've mentioned in the description
The description does not say anything about you not using cordova. You just posted an error.
I have noticed that some of the minor details in readme are out of date with the latest capacitor
Please let me know, which ones you mean so I can fix it.
I am using beta.13
The plugin beta.1 needs capacitor beta.17. npm install should have informed you about that.
from generic-oauth2.
I see, will give it a go with an updated version, thanks for the quick replies! 👍
from generic-oauth2.
In terms of README, I've found that the capacitor docs are suggesting this:
// Other imports...
import com.example.myapp.EchoPlugin;
public class MainActivity extends BridgeActivity {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
// Initializes the Bridge
this.init(savedInstanceState, new ArrayList<Class<? extends Plugin>>() {{
// Additional plugins you've installed go here
// Ex: add(TotallyAwesomePlugin.class);
add(EchoPlugin.class);
}});
}
}
while plugin readme suggests:
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
List<Class<? extends Plugin>> additionalPlugins = new ArrayList<>();
// Additional plugins you've installed go here
// Ex: additionalPlugins.add(TotallyAwesomePlugin.class);
additionalPlugins.add(OAuth2ClientPlugin.class);
// Initializes the Bridge
this.init(savedInstanceState, additionalPlugins);
}
from generic-oauth2.
Awesome, thanks for your work!
from generic-oauth2.
I close this for now. I the problem persist with capacitor beta.17 I'll reopen it.
from generic-oauth2.
Related Issues (20)
- Feat: Integration with trapeze to improve configuration
- Auth0 HOT 1
- Bug: Intent filter not working for redirection after login HOT 2
- Feat: Support Android 13 HOT 2
- Support for Capacitor 5 HOT 10
- Is there a way to get a login prompt? HOT 1
- Azure B2C ui_locales is directly supported via the auth request builder exception HOT 2
- I am not able to hide URL bar HOT 2
- accessTokenEndpoint quirk with django backend HOT 1
- Google with android says "Custom scheme URIs are not allowed for 'WEB' client type" HOT 3
- App Store Connect Issue
- Hide navigation bar and footer on iOS HOT 5
- Evidence of the use of safari
- Question: What kind of browser is used for login? HOT 1
- Feat: support universal links on iOS HOT 3
- Azure SSO; Response comes from azure, but does not come to authenticate
- capacitor-oauth2 - Azure SSO is not working in android and ios.Bug:
- Feat: Electron
- IOS 17 keyclock login not working
- Bug: Jest not working when using the plugin
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 generic-oauth2.