ionic-native

Ionic native Printer plugin not working

梦想与她 提交于 2019-12-02 02:49:25
(Ionic 2) The plugin located here seems to not work for me on android and ios : http://ionicframework.com/docs/native/printer/ I think that I followed the guidelines from this page, the code is building on both platforms but I got a black screen on ios and a blank one on android when emulate ... First I started a new project : ionic start PrinterApp --v2 Then I installed platforms : android 6.2.1, ios 4.3.1 Then the two command lines from the plugin page : ionic plugin add --save de.appplant.cordova.plugin.printer npm install --save @ionic-native/printer Then in the home.html I put a line to

Ionic 3 geolocation not working when GPS is disabled

送分小仙女□ 提交于 2019-12-01 21:06:06
I have ionic native geolocation plugin installed "@ionic-native/geolocation": "^4.15.0" I have also tried "4.6.0" and "4.20.0". It is working absolutely fine when I keep my GPS enabled before going to that page. But when GPS is not enabled, It won't ask me to turn it ON, gives an error on console and carry undefined coordinates with it. I wrote the method of getCurrentPosition in constructor/ionViewDidLoad. So even user enable it on that page, the method does not invoke and the coordinates remain undefined. Following is code this.geolocation .getCurrentPosition() .then(resp => { console.log

Unable to run cordova run android in IONIC project?

和自甴很熟 提交于 2019-11-28 14:14:20
I installed ionic in my Mac and created project using $ ionic start MyIonicProject tutorial Now i run $ cd MyIonicProject $ ionic serve Now it is serving successfully in browser working fine. So I would like to see the same in android mobile so tried using the below command, ionic cordova run android --prod --release This is the pretty concise issue and i can't able to rectify my OSX error's below are the issues when i run above in my Mac.. > cordova run android --release ANDROID_HOME=/usr/local/Caskroom/android-sdk/3859397,26.0.2 JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk

Ionic3 ionic native google maps doesn't show map but only google logo (display grey blank map )

寵の児 提交于 2019-11-28 08:10:33
问题 Update Thanks for the answer of wf9a5m75. I had a concept misunderststand on the API Keys. The Android and IOS API Key are generated from Google Cloud Platform Console (https://cloud.google.com/maps-platform/). I was using https://console.developers.google.com/ which is for Google Maps Javascript and that's why when I test the API Key on web application it works but not for mobiles. For anyone who follows the Ionic native google maps guide, use https://cloud.google.com/maps-platform to

Problem with play-services-measurement-base on ionic

怎甘沉沦 提交于 2019-11-27 11:53:25
I have a problem on an ionic project that it started happening yesterday without modifying any dependency. When I run ionic cordova run android I have this error: The library com.google.android.gms:play-services-measurement-base is being requested by various other libraries at [[16.5.0,16.5.0], [16.4.0,16.4.0]], but resolves to 16.5.0. Disable the plugin and check your dependencies tree using ./gradlew :app:dependencies. But I didn't installed any dependency in these days. This is my cordova plugins list: cordova-fabric-plugin 1.1.14-dev "cordova-fabric-plugin" cordova-plugin-advanced-http 2.0

Read video stored on android native storage in my Ionic app

*爱你&永不变心* 提交于 2019-11-27 09:50:35
I am developing ionic 3 app that download videos from server to the device's native storage . i used this URL to save file: let externalDir = this.file.externalDataDirectory; file download is fine it is downloaded and i can view it from the device. for more details the file link in the storage is: /storage/emulated/0/Android/data/xxxxxxxx/files/VideoTest1/0.mp4 but the problem is i want to play that downloaded video into my app using <video> tag, i used the same link to view it but it doesn't work. any help? sorry for my english I've been searching for a solution. I resolve this issue as

Unable to run cordova run android in IONIC project?

你离开我真会死。 提交于 2019-11-27 08:25:26
问题 I installed ionic in my Mac and created project using $ ionic start MyIonicProject tutorial Now i run $ cd MyIonicProject $ ionic serve Now it is serving successfully in browser working fine. So I would like to see the same in android mobile so tried using the below command, ionic cordova run android --prod --release This is the pretty concise issue and i can't able to rectify my OSX error's below are the issues when i run above in my Mac.. > cordova run android --release ANDROID_HOME=/usr

Problem with play-services-measurement-base on ionic

China☆狼群 提交于 2019-11-26 12:57:56
问题 I have a problem on an ionic project that it started happening yesterday without modifying any dependency. When I run ionic cordova run android I have this error: The library com.google.android.gms:play-services-measurement-base is being requested by various other libraries at [[16.5.0,16.5.0], [16.4.0,16.4.0]], but resolves to 16.5.0. Disable the plugin and check your dependencies tree using ./gradlew :app:dependencies. But I didn\'t installed any dependency in these days. This is my cordova