-
-
Notifications
You must be signed in to change notification settings - Fork 361
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Capacitor Support #407
Comments
@EinfachHans , were you able to add this with capacitor ? I am trying to integrate diagnostic with capacitor, but app is getting crashed. This is the error,
|
Hi all,
<?xml version='1.0' encoding='utf-8'?>
<widget id="my.beautiful.app" version="1.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<preference name="cordova.plugins.diagnostic.modules" value="LOCATION NOTIFICATIONS <etc>" />
</widget>
That's all. I've tested it on both Android and iOS, works fine. |
I try several different ways to apply the plugin with Capacitor. I got several conclusions.
import { Diagnostic } from '@ionic-native/diagnostic/ngx';
@Injectable()
export class QueryLocationService { I have such error in Xcode console.
requestPermission() {
return new Promise((resolve, reject) => {
(<any>window).cordova.plugins.diagnostic.isLocationAuthorized((res) => {
console.debug("cordova.plugins.diagnostic.isLocationAuthorized ==>")
console.debug(res);
resolve(res);
}, (err) => {
reject(err);
})
})
}
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Feature request
I want to switch to Capacitor with my Apps and in nearly every App i used this Plugin. What would be needed to add official Support for Capacitor? I think the main Problem is that the Hooks don't work in Capacitor why the enabling/disabling of Modules doesn't work?
Maybe create a Support Plan to finance your work on this like the official Cordova Google Maps Plugin?
The text was updated successfully, but these errors were encountered: