ionic-native

Ioniv-v4 : ionic cordova plugin add cordova-plugin-googleplus Not working

拟墨画扇 提交于 2019-12-23 02:59:06
问题 This (cordova-plugin-googleplus) command is not working with IONIC-v4-BETA, please help on this issue, details mentioned below. Command ionic cordova plugin add cordova-plugin-googleplus --variable REVERSED_CLIENT_ID=REV_KEY COMMAND ERROR PS C:\ROOT\yaflix\Source\DEV\yaflix> ionic cordova plugin add cordova-plugin-googleplus --variable REVERSED_CLIENT_ID=com.googleusercontent.apps.**************************************** > cordova plugin add cordova-plugin-googleplus --variable REVERSED

Ionic 3 geolocation not working when GPS is disabled

半城伤御伤魂 提交于 2019-12-20 02:12:31
问题 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

pick video using ionic 3 native camera plugin

前提是你 提交于 2019-12-19 11:23:41
问题 this.camera.getPicture({ quality: 50, destinationType: this.camera.DestinationType.DATA_URL, mediaType: this.camera.MediaType.VIDEO, sourceType: this.camera.PictureSourceType.PHOTOLIBRARY, }).then((videoData) => { console.log('video data', videoData); I can't send the video data to server. The very first thing I'm struggling with here is that how is destinationType affecting the returned result because no matter what I set (either DATA_URL or File_Uri) it always returns me some url of this

Ionic 4 native plugin geolocation gives me “Module not found: Error: Can't resolve 'rxjs/Observable'”

岁酱吖の 提交于 2019-12-19 07:54:09
问题 I'm trying to use ionic native plugin geolocation in ionic 4 but I got a this error: Failed to compile. ./node_modules/@ionic-native/geolocation/index.js Module not found: Error: Can't resolve 'rxjs/Observable' in 'C:\Projects\ionic\prayers\node_modules\@ionic-native\geolocation' this is my dependencies: "dependencies": { "@angular/common": "6.0.9", "@angular/core": "6.0.9", "@angular/forms": "6.0.9", "@angular/http": "6.0.9", "@angular/platform-browser": "6.0.9", "@angular/platform-browser

Read video stored on android native storage in my Ionic app

前提是你 提交于 2019-12-17 10:07:03
问题 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

Ionic 3 value binding Geolocation

青春壹個敷衍的年華 提交于 2019-12-14 03:56:25
问题 ERROR TypeError: Cannot set property 'items' of null This is the result of: </ion-card> <button ion-button round outline (click)="logEvent($startTrackingButton)">Start tracking me</button> <ion-card> <ion-item> <h2>Locations:</h2> <ion-list no-lines> <h3 ion-item *ngFor="let item of items" (click)="itemSelected(item)"> {{ item }} </h3> </ion-list> </ion-item> </ion-card> </ion-content> (In Component.html), now for its .ts file: logEvent1(TrackNowButton) { /*Initializing geolocation*/ //

DEEPLINK_HOST in ionic deeplink

久未见 提交于 2019-12-13 05:05:35
问题 I am trying to set up my app to have deeplinks. As mentioend in the ionic native docs here we need to use the following command ionic cordova plugin add ionic-plugin-deeplinks --variable URL_SCHEME=myapp --variable DEEPLINK_SCHEME=https --variable DEEPLINK_HOST=example.com --variable ANDROID_PATH_PREFIX=/ What should I enter in the DEEPLINK_HOST parameter. If I provide it my site domain will I have to setup anything on that site? 回答1: DEEPLINK_HOST is the host part of the URL you click on

Ionic 4 - Native camera plugin issues

时间秒杀一切 提交于 2019-12-13 03:49:51
问题 I have developed an android application using Ionic4. I am facing some issues with Ionic Native Camera plugin. The following is my code. The issues that i am facing is given below. The version if camera plugin i am using is "@ionic-native/camera": "^5.3.0", . Issues Gallery is not opening Captured image is not returning. Application crashes after taking picture html <img [src]="studentImage!==null ? studentImage: 'assets/icon/ic_avatar.png'" class="add-picture" (click)="addImage()"> .ts

How to disallow screenshoot in ionic 3?

删除回忆录丶 提交于 2019-12-13 01:54:27
问题 How can I prevent the user from taking screenshots in ionic 3? I can not find any info about how to disallow take screenshots on android using ionic 3 for example using ionic native. 回答1: Maybe take a look at this - "PrivacyScreenPlugin" at "https://www.npmjs.com/package/cordova-plugin-privacyscreen"? I used the same to disable screenshots for my Android App and it worked fine. 回答2: You can try the following links: https://www.npmjs.com/package/cordova-plugin-prevent-screenshot https:/

Download not working using filetransfer plugin

我是研究僧i 提交于 2019-12-12 16:27:31
问题 I used IonicNative plugin for downloading pdf files. https://ionicframework.com/docs/native/file-transfer/ I can see download complete using alert,but cannot see any download happening. private filetransfer: FileTransferObject = this.transfer.create(); const url = 'https://www.example.com/example%20test.pdf'; this.filetransfer.download(url, this.file.dataDirectory + 'example%20test.pdf').then((entry) => { alert('download complete: ' + entry.toURL()); }, (error) => { alert(error); }); Is this