ionic-framework

ionic sidemenu on mobile browser not working smoothly

大城市里の小女人 提交于 2019-12-22 06:58:22
问题 I am developing mobile web app using ionic sidemenu, but it is not as smooth as it should be. When I open sidemenu using slide left/right, I am getting less than 30 FPS as shown in figure. How can I improve the performance? Reaching 60 FPS would be great! 回答1: AppGyver's Steroids tooling also provides you with access to Crosswalk on Android. You can run it in your Ionic project directly without modifying any files. Also, Supersonic's sidemenu/drawer is fully native, so if you're up for

Can't run Ionic on Android: class not found exception IonicKeyboard

走远了吗. 提交于 2019-12-22 06:57:05
问题 After building and running android app it closes. Viewing Eclipse logcat it shows a class not found exception com.ionic.keyboard.IonicKeyboard I'm new with Ionic and I don't know how to make it work. Thanks in advance 回答1: I had the same problems. In my case the plugin was already installed , so I had to remove and add it again: Try this in your app-folder: cordova plugin remove com.ionic.keyboard and cordova plugin add com.ionic.keyboard 回答2: npm changed plugin names. Now it should be

How to open external links from my Ionic app inside a web browser view

早过忘川 提交于 2019-12-22 06:44:55
问题 Step 1 : Ionic create New App. (ionic start myApp1 sidemenu) Step 2 : Create New Page home and aboutus. (ionic generate page aboutus) step 3 : Create button at aboutus page for url redirect to another website. aboutus.html : (<button ion-button (click)="redirect()"> GO » <button>) aboutus.ts : redirect() { window.open("https://www.w3schools.com/php/", "_self"); } step 4 : When i click GO button the url redirect to w3schools.com and again browser back button click the redirect to home page

$scope.$watch in Angular doesn't work in Ionic/Cordova

[亡魂溺海] 提交于 2019-12-22 06:41:01
问题 I'm building an app using the Ionic Framework for which I now want to create some on-off switches (which are basically fancy styled checkboxes). When a person flips the switch I want to send this to the server, so I'm first trying to catch the switch change event. In a basic angular install I tried it with a simple checkbox in the html ( <input type="checkbox" ng-model="theswitch"> ) and a $watch in my controller like so: $scope.$watch('theswitch', function(){ console.log('theswitch changed')

Angularjs 'FileConstructor is not a constructor'

守給你的承諾、 提交于 2019-12-22 05:59:36
问题 Issue: Error: FileConstructor is not a constructor (evaluating 'new File([blob], "filename.png")') I saw this question Alternative for File() constructor for safari but there weren't any alternatives worth looking at. Is there anyway to work around this using Ionic Framework on IOS? Javascript a = Base64 image. var blob = new Blob([a], {type: 'image/png'}); console.log(blob); $scope.Issue14 = blob; var nfile = new File([blob], "filename.png"); console.log(nfile); $scope.Issue15 = nfile; var

How to remove small caret from ion-select in ionic4

我是研究僧i 提交于 2019-12-22 05:42:28
问题 I want to remove the inbuilt grey small caret from ion-select , and use my custom caret(arrow) instead. Code: ion-select { color: grey; background:url("/assets/resources/img/ArrowDownConfig.svg") no-repeat 92% center !important; } But my css code is unable to precedence over the ionic(inbuilt). You can see there are two arrows in the image, one is inbuilt and another is custom. I want to remove inbuilt(ionic) one. 回答1: I don't know how to fix, faced same problem, but it seems to be issue with

Using ui-router in the ionic framework in AngularJS

◇◆丶佛笑我妖孽 提交于 2019-12-22 05:25:27
问题 I'm working on an app that uses the ionic framework. This in-turn uses the ui-router. Currently, I have a pretty basic two-page app. However, it will expand to be much larger. At this time, I get an error when I transition from my first view to my second view. The error says: TypeError: Cannot read property '1' of null at http://localhost:11000/vendor/ionic/release/js/ionic.bundle.js:14235:28 at updateView (http://localhost:11000/vendor/ionic/release/js/ionic.bundle.js:37839:30) at eventHook

Cordova ios icon (and splashscreen) not showing with Ionic resources

旧城冷巷雨未停 提交于 2019-12-22 05:23:28
问题 I know there have been a number of posts about this, but none of them are working. My android platform is working perfectly, and shows the app icon and splashscreen, but the ios platform refuses to show them. I tried a number of different folder locations, and I used ionic resources to auto generate the image files and place them in the correct folders and to populate the config.xml, which should work. I don't even know where the app gets the Cordova robot image from, I can't find it anywhere

ionic 2 - inappbrowser “browser.on(…).subscribe is not a function” error

删除回忆录丶 提交于 2019-12-22 05:17:23
问题 I follow this http://ionicframework.com/docs/native/in-app-browser/ document for use inappbrowser and try with below steps : 1- install ionic cordova plugin add cordova-plugin-inappbrowser npm install --save @ionic-native/in-app-browser 2 - Add this plugin to app.module.ts provider 3 - add to constructor : constructor(private iab: InAppBrowser) { } 4- and use it in launch method like this : import { InAppBrowser,InAppBrowserEvent} from '@ionic-native/in-app-browser'; launch(urlc){ let url =

deviceready only fire after 30 seconds in iOS 10

旧时模样 提交于 2019-12-22 05:14:51
问题 I deviceready doesn't fire or fires very late in my ionic app when I run it on my iOS device with ionic run ios --device -lcs I removed all the plugins with ionic plugin rm ... , deleted the content of the plugins/ directory and reinstalled them. I also removed and reinstalled the ios platform with ionic platform rm/add ios . I am stuck with this. The iPhone (6+) is on iOS 10. I am using ionic 1, and the last ionic CLI. EDIT: I removed all plugins one by one, and its seems that the problem is