ionic-framework

Ionic splash screen (error: unable to read uploaded image)

狂风中的少年 提交于 2020-01-03 08:43:52
问题 I am trying to use the ionic resources --splash command, I have a splash.png file saved in my resources folder as well as in the root of my ios and android folders, and it is 2208 x 2208 which is the advised size. But when I run the command I get the following error "Invalid upload: unable to read uploaded image" I have added the splash screen preference in my config.xml. Is there more conditions that they didn't specify? 回答1: I got the same error when uploading an interlaced .png. However

Geolocation not working in device ionic3

泪湿孤枕 提交于 2020-01-03 08:42:27
问题 I am working with ionic 3 location-based work. I am not able to get current location of latitude and longitude here. I mentioned my usable code. It's working fine in browser level but not working in a mobile device. code $ ionic cordova plugin add cordova-plugin-geolocation --variable GEOLOCATION_USAGE_DESCRIPTION="To locate you" $ npm install --save @ionic-native/geolocation import { Geolocation } from '@ionic-native/geolocation'; constructor(private geolocation: Geolocation) {} this

Geolocation not working in device ionic3

☆樱花仙子☆ 提交于 2020-01-03 08:42:10
问题 I am working with ionic 3 location-based work. I am not able to get current location of latitude and longitude here. I mentioned my usable code. It's working fine in browser level but not working in a mobile device. code $ ionic cordova plugin add cordova-plugin-geolocation --variable GEOLOCATION_USAGE_DESCRIPTION="To locate you" $ npm install --save @ionic-native/geolocation import { Geolocation } from '@ionic-native/geolocation'; constructor(private geolocation: Geolocation) {} this

Instagram-like force touch popup modal

柔情痞子 提交于 2020-01-03 07:24:07
问题 I'm trying to replicate force touch functionality of Instagram where 1) Put your finger on an image and it gets a little darker (hover effect, easy) 2) Press a little harder and a popup modal preview of the content appears 3) Press even harder and it expands the modal to full screen I'm having problems with Ionic 4/Cordova "3d touch" plugin where it doesn't register the force-touch if I regular-touch the screen first. In order words, step 2 above does not trigger the force touch when

Change the icon of the push notification status bar on Android and IOS

梦想的初衷 提交于 2020-01-03 07:07:29
问题 My app icon is blue/red and when I receive a push notification the icon on status bar is the same app icon(blue/red). I want the icon of the status bar be a transparent and white version. My ionic project is using this cordova plugin to receive push notifications. The official docs of the plugin theres nothing about how to configure the icon of the status bar notification. 回答1: Looks like what you’d want isn’t possible with that library. On iOS According to the documentation, the notification

Display App version in App setting on IOS

夙愿已清 提交于 2020-01-03 06:08:26
问题 How can I display the version of my Cordova App in the setting on iOS? My build.xml file starts with the following: <widget id="com.my-bundle-id" version="1.2.3" xmlns="http://www.w3.org/ns/widgets" xmlns:android="http://schemas.android.com/apk/res/android" > But in the App Settings only the permissions section is displayed: How can I display the version section using Cordova? (I looked around and found only a plugin to programmatically get the App version but not how to populate the settings

Ionic2 performance issue

ε祈祈猫儿з 提交于 2020-01-03 04:56:06
问题 My ionic2 app is taking like 15 seconds to start in a device. I tried all the recommendation (minify, uglify, enableProd, --prod --release, etc) My final apk is 4.3MB The app doesn't have any image except from the icon and from the splashcreen, It has more less 20 screens, but just text and list and buttons (it's a payment app so nothing weird) My package.json is: { "name": "xxxxx", "author": "xxxx", "homepage": "http://ionicframework.com/", "private": true, "scripts": { "ionic:build": "ionic

Using TouchID on Ionic 2

强颜欢笑 提交于 2020-01-03 04:40:09
问题 I am trying to use TouchID within my Ionic 2 app and have this simplified code. When I run the app on my iPhone I see "A" is logged in the console and then "Fingerprint or device passcode validated." but "B" is not logged. What have I missed? checkIn(job) { console.log("A"); TouchID.verifyFingerprint('Scan your fingerprint to check in') .then( res => function() { console.log("B"); }, err => alert('Sorry, your fingerprint is not recognised') ); } 回答1: I am assuming you have imported Touch ID

Ionic sidemenu with Native-Page-Transitions

允我心安 提交于 2020-01-03 03:03:17
问题 I am trying to do native transition for ionic side-menu by using NativePageTransitions plugin (https://github.com/Telerik-Verified-Plugins/NativePageTransitions) and my experiment code as below: index.html <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width"> <title></title> <!-- compiled css output --> <link href="css/ionic.app.css" rel="stylesheet"> <!-- ionic/angularjs js --> <script src=

HTML5 video play() not playing ionic 3 "ios and android

六月ゝ 毕业季﹏ 提交于 2020-01-03 02:59:13
问题 I have been searching for a long time and have tried a lot of approaches but nothing seems to be working. I have a video tag which I want to be played when I tap over it. I am working on Ionic 3 and angular. The code is shown below. Please help me out or direct me if I missed anything. HTML: <video id="edit-video-element" width="100%" [src]="videoPath" webkit-playsinline poster="{{thumbnailPath}}" controls autobuffer > </video> .ts file this.video = document.getElementsByTagName('video')[0];