cordova-plugin-geolocation | Apache Cordova Plugin geolocation | Mobile Application library
kandi X-RAY | cordova-plugin-geolocation Summary
kandi X-RAY | cordova-plugin-geolocation Summary
Apache Cordova Plugin geolocation
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Set timeout failure callback .
cordova-plugin-geolocation Key Features
cordova-plugin-geolocation Examples and Code Snippets
Community Discussions
Trending Discussions on cordova-plugin-geolocation
QUESTION
I'm trying to migrate my mobile app (developed with Cordova and AngularJS for Android and iOS platforms) and I have some issues from API 29 to API 30. In my app I download from a REST service a JSON catalogue with separated pictures (JPG format) that I store in Data Directory (cordova.file.dataDirectory). With the app build with API set to 29 the app works fine, downloading pictures and displaying them in an HTML page (updated with AngularJS). But if I try to build it with API set to 30, the app continues to work (it download correctly the json and the jpg files in Data Directory) but without displaying the pictures stored in that directory. I also tried to create a new simple mobile app using all the updated component (Cordova 10.0.0, Android platform 10.0.0, plugins, etc.) but I obtain the same behaviour and I cannot resolve this issue. Could you help me or have you an idea how to resolve it?
Info App build with API 29Cordova v8.1.2
Android Platform v8.0.0
Cordova v10.0.0
Android Platform v10.0.0
cordova-plugin-android-permissions 1.0.2 "Permissions"
cordova-plugin-camera 4.1.0 "Camera"
cordova-plugin-compat 1.2.0 "Compat"
cordova-plugin-datepicker 0.9.3 "DatePicker"
cordova-plugin-device 2.0.3 "Device"
cordova-plugin-dialogs 2.0.2 "Notification"
cordova-plugin-file 6.0.2 "File"
cordova-plugin-file-hash 0.4.1 "FileHash"
cordova-plugin-filepath 1.5.8 "cordova-plugin-filepath"
cordova-plugin-geolocation 4.0.2 "Geolocation"
cordova-plugin-globalization 1.11.0 "Globalization"
cordova-plugin-inappbrowser 3.2.0 "InAppBrowser"
cordova-plugin-network-information 2.0.2 "Network Information"
cordova-plugin-sign-in-with-apple 0.1.2 "cordova-plugin-sign-in-with-apple"
cordova-plugin-splashscreen 5.0.3 "Splashscreen"
cordova-plugin-statusbar 2.4.3 "StatusBar"
cordova-plugin-whitelist 1.3.4 "Whitelist"
cordova-plugin-wkwebview-engine 1.2.1 "Cordova WKWebView Engine"
cordova-plugin-wkwebview-file-xhr 2.1.4 "Cordova WKWebView File XHR Plugin"
cordova-sqlite-storage 5.0.0 "Cordova sqlite storage plugin - cordova-sqlite-storage plugin version"
ionic-plugin-keyboard 2.2.1 "Keyboard"
phonegap-plugin-mobile-accessibility 1.0.5-dev "Mobile Accessibility"
ANSWER
Answered 2021-Oct-07 at 14:14Try adding to you config
QUESTION
I was using FCM plugin earlier. But it stopped working on Android 11. So thought of switching to firebasex plugin. But as soon as I add it to my project. ionic-native/http stops working.
Ionic Info :
...ANSWER
Answered 2021-Sep-07 at 00:18Ionic Native Plugin Firebase X has conflict issues with Ionic Native HTTP because of OKHTTP Version.
There are two possible solutions here. First is by locking the version by adding the following to the config.xml:
QUESTION
Some time ago I asked (and solved) for the same question for the iOS version fo my app (Cordova iOS 6.1.1 white splash screen), now I have the same issue for the Android one.
I'm build the apk with an online tool using cordova-cli-10.0.0
The app runs but I see only a white screen instead of my splash screen file.
In my config.xml file I have the following splash screen settings (I skipped other settings here, if needed I can post them):
...ANSWER
Answered 2021-Apr-12 at 15:03Maybe use proper file naming, rename your
QUESTION
I am using Cordova CLI 9.0, Cordova-Android 9.0, and an Ionic 4 Web application. It runs okay, but I keep getting these errors for my plugins:
...ANSWER
Answered 2021-Mar-23 at 18:32I was able to find 2 different places that are calling functions on cordova_plugins. I commented out these functions from the phonegap/plugins Injecter and it seemed to get rid of all the errors.
QUESTION
I'm trying to compile an Ionic 3 app with Firebase on Ios using Xcode Version 12.3 (12C33).
Even with the module in the Podfile, for some reason it keeps giving 'Use of undeclared identifier 'FIRAnalyticsConfiguration'
What I'm doing wrong? Everything looks updated.
Commands used:
...ANSWER
Answered 2021-Feb-02 at 20:14According to release notes of Firebase Analytics FIRAnalyticsConfiguration
APIs was removed in version 6.0.0. You can use the same APIs directly on FirebaseAnalytics
class.
QUESTION
I have converted an Angular project into a hybrid app following this guide: https://medium.com/@christof.thalmann/convert-angular-project-to-android-apk-in-10-steps-c49e2fddd29
For Android I did not run into many issues and the app is working as expected on that platform.
On IOS I ran into multiple difficulties. First of all in order contents display I needed to change the Angular LocationStrategy to HashLocation as describe in this SO topic:
Why Angular Router 8 router ...
Although I now do get content to render I still have trouble getting the dynamic content (i.e. the content requiring a call to a web server before rendering) to render properly.
My app has got a classic NavBar to switch from one component to another. If I activate one component by clicking on a Nav Button the static content gets rendered ok. However, the dynamic content is not there. I can verify this by looking at the source code: The holding the dynamic content is empty. If I click on the same Nav Button again the dynamic content is added. I get the same effect on an iPhone simulator and on a real device.
This is the html of one of the components
...ANSWER
Answered 2021-Jan-06 at 15:45After a lot of trial and error and searching I found the solution.
I found a hint here:
https://github.com/angular/angular/issues/7381[1]
For a reason I fo not fully understand yet the app seems to switch zones during the async call to the server. Therefore the UI change mechanism is not triggered and the screen is not updated.
By wrapping the changes of variables into NgZone.run()
the screen is updated correctly.
The updated .ts file
QUESTION
I've an Ionic 3 app that's working fine when compiled without --prod flag (debug mode). When I set the --prod, the app stops on splash screen.
This works (the app open normal):
ionic cordova run android
This works too:
ionic cordova build android
This doesn't works (the app stops on splash screen):
ionic cordova build android --minifyjs --minifycss --release --aot
Neither this command:
...ANSWER
Answered 2021-Jan-03 at 00:24Finally get this working again!
For anyone get in trouble using ionic 3 + firebase, this is my working setup:
package.json
QUESTION
Ionic 5 with Capacitor getting 'plugin_not_installed' with plugin 'cordova.plugins.diagnostic'. Tried installing with this doc.
I have:
config.xml
has.
package.json
has
ANSWER
Answered 2020-Nov-28 at 11:42First, when using Cordova plugin inside a capacitor project, use this commands.
QUESTION
I created an app with ionic and it is almost finished (it is a cart shop app). now that I want to build the app I'm using the following command:
...ANSWER
Answered 2020-Sep-03 at 07:16I have several apps on both platforms and I can confirm that there is no such difference between platforms; the performance should be similar.
I think you need to check your code and see what takes place before you hide the splash screen. Then narrow it down by removing/adding functionality to see where the problem is.
If you use ios specific plugin that might be a reason. Also, some plugins may require different configurations depending on the platform.
Without debugging your code, it is difficult to say where the problem may be. I would encourage creating an empty project and keep adding your functionality to see where the bottleneck is. If we can identify the specific issue, we may help out to address it but without knowing the bottleneck, it is difficult to say anything...
Regardless, the simulator will always be slower compared to an actual device as you suspected
QUESTION
I am able to successfully build and run my app in ios5, but when I upgrade to ios6.1.0 in order to install a plugin that will allow me to use VKwebview and reference local html files, I get 3 fatal errors in xcode:
- Property 'userAgent' not found on object of type 'CDVViewController *'
- Use of undeclared identifier 'CDVUserAgentUtil'. (these are repeated twice)
I am at a total loss as to even start looking for the answers.
This is my config.xml:
...ANSWER
Answered 2020-Jul-27 at 07:15CDVUserAgentUtil
has been removed in cordova-ios@6
which is a breaking change (hence the major version increment in cordova-ios
to 6
).
This class is used by some Cordova plugins in your project hence the error.
You should first update all of your plugins to the latest versions so those which have been updated to removed references to CDVUserAgentUtil
are used.
At least one of your plugins - cordova-plugin-file-transfer is deprecated and contains an implicit reference to CDVUserAgentUtil
. In this case you could use my fork of this plugin which has been fixed to remove the reference:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install cordova-plugin-geolocation
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page