ionic3

Make Ionic app appear in “Share” list and receive data

99封情书 提交于 2019-11-26 19:52:39
问题 I am trying to get an Ionic app to appear in the "Share" list when a user clicks the share button for example for an image. As far as I understand I have to add something like <intent-filter> <action android:name="android.intent.action.SEND" /> <category android:name="android.intent.category.DEFAULT" /> <data android:mimeType="image/*" /> </intent-filter> to the AndroidManifest.xml . That I can do using the cordova-custom-config plugin, I think. I would then have to handle that intent somehow

Getting “Uncaught (in promise): TypeError: Object(…) is not a function” Error from Ionic-native VideoEditor Plugin

拟墨画扇 提交于 2019-11-26 19:10:26
I'm developing an ionic app, where user can record a new video. Then I want to break the video into frames and send frames to a server. I'm using createThumbnail function from ionic-native VideoEditor plugin. But when I try to call createThumbnail function, it throws ERROR Error: Uncaught (in promise): TypeError: Object(...) is not a function Here's my source code. HTML Code <ion-content padding> <button ion-button full (click)="captureVideo()">Capture video</button> <br/> <ion-list> <ion-item *ngFor="let file of mediaFiles" tappable (click)="playFile(file)" text-wrap> {{file.name}} <p>{{file

Ionic 3 - ios - displaying selected image on screen

回眸只為那壹抹淺笑 提交于 2019-11-26 17:16:53
问题 I set up the camera plugin to select an image from the photo library and upload it to the server with the following code: getImage() { //By default the camera retrieves the image as a JPEG file. const options: CameraOptions = { quality: 100, destinationType: this.camera.DestinationType.FILE_URI, sourceType: this.camera.PictureSourceType.PHOTOLIBRARY, targetWidth:1080, targetHeight:1080, correctOrientation: true, mediaType: this.camera.MediaType.PICTURE, encodingType: this.camera.EncodingType

Ionic 2 Form goes up when keyboard shows

若如初见. 提交于 2019-11-26 16:33:21
I am using latest version of ionic 2. My code has a <ion-content padding><form></form></ion-content> with a text input inside of it. When I try to type something in there on Android the whole page gets pushed upwards by the keyboard. html file <ion-content class="login-screen" padding> <form (ngSubmit)="login()" novalidate> <ion-list> <ion-item> <ion-label fixed>Username</ion-label> <ion-input type="text" name="username" [(ngModel)]="username" required></ion-input> </ion-item> <ion-item> <ion-label fixed>Password</ion-label> <ion-input type="password" name="password" [(ngModel)]="password"

Why am I getting the error plugin_not_installed with the Ionic Framework plugin healthkit?

流过昼夜 提交于 2019-11-26 14:34:37
问题 I have been using Ionic Framework for a while but I have recently come across this error plugin_not_installed for the Health Kit plugin which I know I have based on my ionic cordova plugin list output. $ ionic cordova plugin list > cordova plugin ls com.telerik.plugins.healthkit 0.5.5 "HealthKit" cordova-plugin-apprate 1.3.0 "AppRate" cordova-plugin-badge 0.8.5 "Badge" cordova-plugin-device 1.1.4 "Device" cordova-plugin-dialogs 1.3.4 "Notification" cordova-plugin-globalization 1.0.8

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

Use nav.push with side menu in ionic 2

限于喜欢 提交于 2019-11-26 10:00:01
问题 I try to make a little app in ionic2 to learn about it but I have a problem with navigation. In fact I have well understand the difference between a rootpage (change whit nav.setRoot ) and a \"normal\" page (add with nav.push ). The thing is for my app I\'ll need to be able to open a side menu (this is ok if I\'m on a rootpage but not it\'s not ok with the second type of page) and to be able to go back (this is ok with a push page but not with a rootpage). So for me this type of page should

Ionic - Horizontal scroll tab for Categories [duplicate]

雨燕双飞 提交于 2019-11-26 09:09:28
问题 This question already has answers here : How can I use content.scrollTo() for ion-scroll in ionic2? (5 answers) Closed 2 years ago . I am working on a web/mobile application with mobile and we have this horizontal scroll tab at the above that represents Categories. On mobile it is fine, but on web I am required to add 2 flashes one on the right side and one on the left side. When the user clicks on them the scroll should move to that direction. <ion-scroll scrollX=\"true\"> <ion-segment [

Ionic2/Angular2 - Read a custom config file

点点圈 提交于 2019-11-26 08:32:18
问题 I\'m working on an ionic2 project and I need to create a new custom JSON config file. I found some tutorials to create one and access it through http.get but I think it\'s weird to call it through a get request. I want it in the root folder (where all the config JSONs are) and I open/read the file directly. I don\'t know if it\'s possible, or even recommended ? This is why I\'m posting here to have some opinions and solutions :) Thanks 回答1: Personally I don't like the read the config.json

Ionic Cordova app stopped compiling after Google&#39;s June 17th Firebase SDK update

只愿长相守 提交于 2019-11-26 08:10:48
问题 I\'m unable to compile Ionic Cordova App after Firebase Major version update with Breaking Changes, specifically with June 17, 2019 update. I tried downgrading to Android Cordova 6.3.0 but my project must be 7.0.0. This is my ionic info: @ionic/cli-utils : 1.19.2 ionic (Ionic CLI) : 3.20.0 global packages: cordova (Cordova CLI) : 8.0.0 local packages: @ionic/app-scripts : 3.2.1 Cordova Platforms : android 7.0.0 browser 5.0.4 Ionic Framework : ionic-angular 3.9.3 System: Android SDK Tools : 26