cordova-plugins

Error: Property 'notification' does not exist on type 'Navigator'

北城以北 提交于 2021-02-19 04:23:05
问题 I'm attempting to use the ionic plugin cordova-plugin-dialogs , the plugin is working and I am able to call navigator.notification.alert() and create a native alert prompt but whenever my app builds, I get the following console error: error TS2339: Property 'notification' does not exist on type 'Navigator'. I read online that this could be related to types but I have confirmed that the types for this plugin are installed. 回答1: The way I solved was to add this to my typings.json: "dialogs":

Ionic: background geolocation

空扰寡人 提交于 2021-02-11 06:22:58
问题 I'm using Ionic & Firebase to create an Android application for geolocation. I used ngCordova.geolocation and I successfully get the device current location. My problem is that I need to continuously get current location, as long as the user doesn't turn off geolocation and callback a function every time the geolocation change, and test if the user is inside one of many circles in the maps. 回答1: Since you are already using the ngcordova.geolocation plugin, it has a method to keep tracking the

Cordova - download with direct link

情到浓时终转凉″ 提交于 2021-02-10 19:32:04
问题 I want a direct download from an external link in my project. however, when I click the link, Chrome, Explorer browser opens first. Then the file begins to descend. The platform and plugins I use in the project are below. I would like your support. <!DOCTYPE html> <html> <head> <meta name="format-detection" content="telephone=no"> <meta name="msapplication-tap-highlight" content="no"> <meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width

Resource xml/opener_paths (aka io.ionic.starter:xml/opener_paths) not found

岁酱吖の 提交于 2021-02-08 06:36:36
问题 Getting error while android build <provider android:name="androidx.core.content.FileProvider" android:authorities="${applicationId}.fileprovider;${applicationId}.bugshaker.fileprovider" android:exported="false" android:grantUriPermissions="true"> <meta-data android:name="android.support.FILE_PROVIDER_PATHS" android:resource="@xml/file_paths" ></meta-data> </provider> Error message is: android\app\src\main\AndroidManifest.xml:39:13-41:65: AAPT: error: resource xml/opener_paths (aka io.ionic

Path must be a string. Received undefined after upgrading my cordova to 7.1.0

心不动则不痛 提交于 2021-02-07 06:06:24
问题 E:\ionic template\gb\IonicMaterialDesign>cordova platform add android Using cordova-fetch for cordova-android@~6.3.0 Adding android project... Creating Cordova project for the Android platform: Path: platforms\android Package: com.grabhalal.ghadmin Name: gb Activity: MainActivity Android target: android-26 Subproject Path: CordovaLib Android project created with cordova-android@6.3.0 Installing "cordova-plugin-app-event" for android Installing "cordova-plugin-background-mode" for android

Path must be a string. Received undefined after upgrading my cordova to 7.1.0

孤街醉人 提交于 2021-02-07 06:05:43
问题 E:\ionic template\gb\IonicMaterialDesign>cordova platform add android Using cordova-fetch for cordova-android@~6.3.0 Adding android project... Creating Cordova project for the Android platform: Path: platforms\android Package: com.grabhalal.ghadmin Name: gb Activity: MainActivity Android target: android-26 Subproject Path: CordovaLib Android project created with cordova-android@6.3.0 Installing "cordova-plugin-app-event" for android Installing "cordova-plugin-background-mode" for android

Cordova Sending Data From Android Java to Javascript

假如想象 提交于 2021-01-29 15:09:51
问题 I am working with Cordova and the inAppBrowser plugin for Android. I am trying to expand upon a previous question, https://stackoverflow.com/questions/65534821/cordova-inappbrowser-hide-show-in-java-android/65627954?noredirect=1#comment116337002_65627954 where the inAppBrowser hardware back button was linked to the Javascript .hide function, to hide the browser but not exit it. This problem was solved, however created a new problem, inAppBrowser does not have a visibility status to say if it

Why 'BackgroundFetchHeadlessTask.java' does not work in ionic?

烈酒焚心 提交于 2021-01-29 07:52:38
问题 I'm working on background processes and currently using cordova's background fetch plugin in ionic . I want to run my background task even when I terminate my app. It works in iOS but the documentation says it also supports android . According to the documentation, in order to make enableHeadless: true to work I need to write a java code and can place the BackgroundFetchHeadlessTask.java file anywhere in my app. After creating BackgroundFetchHeadlessTask.java file I'm still getting the

Cordova InAppBrowser plugin shows blank screen on iOS

限于喜欢 提交于 2021-01-29 05:11:47
问题 I've done some serious searching on stackoverflow, but no result. A lot of similar issues, but no one has the solution that I need. My problem is: I'm developing a ios cordova app that make use of the InAppBrowser plugin. Whenever I run the app from xcode directly on my iPhone, it works fine. Whenever I run the app from xcode in a simulator on my mac, it works fine. Whenever I upload the package to the appstore and run the app through Testflight however, the InAppBrowser opens, but only shows

Cordova InAppBrowser plugin shows blank screen on iOS

雨燕双飞 提交于 2021-01-29 05:09:08
问题 I've done some serious searching on stackoverflow, but no result. A lot of similar issues, but no one has the solution that I need. My problem is: I'm developing a ios cordova app that make use of the InAppBrowser plugin. Whenever I run the app from xcode directly on my iPhone, it works fine. Whenever I run the app from xcode in a simulator on my mac, it works fine. Whenever I upload the package to the appstore and run the app through Testflight however, the InAppBrowser opens, but only shows