Ich möchte Cordova Request Location Accuracy Plugin in meiner Phonegap App verwenden ich füge in meine config.xml und dann versuche ich cordova.plugins.locationAccuracy.request(); aber meine Konsole wirft TypeError: cordova.plugins.locationAccuracy ist undefined Was vermisse ich? Danke !!Cordova Anfrage Ort Genauigkeit Plugin
0
A
Antwort
0
Wenn Gebäude vor Ort, stellen Sie sicher, dass es in Ihrem Projekt installiert ist:
$ cordova plugin add cordova-plugin-request-location-accuracy
Oder wenn Gebäude in Cloud (zB Phonegap Bauen), stellen Sie sicher, dass es in der config.xml referenziert ist:
<plugin name="cordova-plugin-request-location-accuracy" spec="*" />
Warten Sie dann auf das Ereignis deviceready
, bevor Sie auf das Plugin verweisen, da Cordova die JS-Plugin-Komponenten zur Laufzeit dynamisch lädt:
document.addEventListener("deviceready", function(){
cordova.plugins.locationAccuracy.request();
}, false);
Überprüfen Sie die plugin documentation für Plattform-spezifische und die example project für eine Illustration der Verwendung.
+0
Vielen Dank Ich war in der Region! – stef
Verwandte Themen
- 1. Ort Genauigkeit funktioniert nicht ionisch 3.5.3
- 2. Reverse-Geokodierung Ort: mehr Genauigkeit als Bereich
- 3. Openzell-Anfrage Ort
- 4. ionische cordova plugin hinzufügen Cordova-plugin-advanced-http bereits installiert
- 5. Cordova Bildschirmausrichtung Plugin funktioniert nicht
- 6. Cordova Media Plugin
- 7. Cordova SQLite Plugin Fehlercode
- 8. Beste cordova sqlite plugin?
- 9. count ++ auf Cordova Plugin
- 10. cordova Bluetooth-Plugin yuflow
- 11. Cordova installieren Plugin
- 12. nicht entfernen Cordova Plugin
- 13. Cordova SQLite Plugin Kompatibilität
- 14. Fehlgeschlagen ‚cordova-plugin-facebook4‘
- 15. Cordova facebook plugin
- 16. Ionic & Cordova SMS Plugin
- 17. Cordova Custom Camera Plugin
- 18. Cordova Facebook Login Plugin
- 19. Cordova MFP-Plugin
- 20. Cordova FCM Plugin
- 21. Cordova Card.IO Plugin-Implementierung
- 22. Ionic2/Cordova Plugin
- 23. Meteor Cordova Drucken plugin
- 24. Cordova Call Plugin Fehler
- 25. Cordova Geolocation-Plugin Ausgabe
- 26. Cordova Hinzufügen Plugin nicht
- 27. cordova plugin x509store
- 28. Cordova Plugin Pedometer
- 29. Fehler: Fehler cordova Plugin
- 30. Cordova Datei-Transfer-Plugin
Können Sie Ihre config.xml hinzufügen? – live2