ionic-framework

Ionic app shows white screen on android 4 versions

核能气质少年 提交于 2020-02-22 23:14:37
问题 I am developing ionic application which works fine in browser as well in android 5 versions but when i try to install my same apk in andriod 4 versions it simply displays white screen doesnt show up anything. i had tried installing crosswalk, whitelist and splash screen plugins after installing all plugins i am unable to build. i am attaching the screenshots of installed plugins and build error please help where i am going wrong. Please find the image where i installed the plugins Also,

Ionic devapp just searching

自作多情 提交于 2020-02-21 17:42:08
问题 I'm having a problem with the Ionic DevApp application .. I use the "ionic serve -c" command it opens in the browser, but on my device it is just looking for .. "Listening for apps on your network". It is not appearing on my device, however I have already tested on 2 other devices, and in them appears the project in the list. I even formatted my Android device, but still can not find the project. Anyone have any idea what it can be? Why is this happening? Thanks! 回答1: How to run the ionic app

Ionic Events replace with Angular Observables

元气小坏坏 提交于 2020-02-21 06:04:33
问题 I understand Ionic events will be deprecated in next version. Currently I use events to executes functions in my parent page from sub components. Here is an example: In my main page it subscribes to the event to refresh: constructor(){ this.eventFormRefresh = (obj) => { this.fetch(obj.isReset); }; this.events.subscribe('form:refresh', this.eventFormRefresh); } ngOnDestroy(): void { this.events.unsubscribe('form:refresh', this.eventFormRefresh); } In a subcomponent I activate the refresh by

Local image for marker icon on Cordova/Phonegap Google Maps Plugin

有些话、适合烂在心里 提交于 2020-02-20 09:09:27
问题 Is it possible to use an image locally store on the device as the marker icon? I can use a URL and it works, but when I try to use a local image it won't load. How should I reference the image? This is a multiplatform application so I can't use device specific paths like Android file:///android:asset/ map.addMarker({ 'position': new plugin.google.maps.LatLng(13.7579507,100.5643353), 'title': 'Fortune Town', 'icon': '../templates/icon2.png' }, function(marker) { marker.showInfoWindow(); }); I

How to enable “Sign in with Apple Id” in Ionic 3 application

ⅰ亾dé卋堺 提交于 2020-02-19 10:47:19
问题 I have an existing Ionic 3 application that allows users to sign in with their Facebook or Google accounts. The app interacts with an ASP.NET Core website and api. My understanding is that at some point Apple will require such apps to support "Sign in with Apple" With Facebook and Google, there are cordova plugins (facebook4 and googleplus), and then some server-side code to handle the OAuth/OpenID Connect. I am not finding any cordova plugins for "Sign in with Apple". I have found an article

Trying to list collection of Firestore Database

房东的猫 提交于 2020-02-16 00:25:41
问题 I'd like to list of the collection of Firestore database inside Ionic4 app so I use the doc in the section listCollection so I applied the example code in my code : this.afs.firestore.listCollections().then(collections => { for (let collection of collections) { console.log(`Found collection with id: ${collection.id}`); } }); here is my constructor : constructor(private router: Router, private afs: AngularFirestore, private fireauth: AngularFireAuth) { } And I get this error : error TS2339:

Ionic 5 with Angular 9 - Angular JIT compilation failed: '@angular/compiler' not loaded

。_饼干妹妹 提交于 2020-02-15 06:05:43
问题 Ionic 5 was announced a few hours ago (12th Feb 2020) and I upgraded my one of the small production app to Ionic 5 along with Angular 9: # To update to Ionic 5 npm install @ionic/angular@latest @ionic/angular-toolkit@latest --save-exact --save # To update to Angular 9 ng update @angular/core @angular/cli But when I did ionic serve , I started getting the bellow error: Error: Angular JIT compilation failed: '@angular/compiler' not loaded! - JIT compilation is discouraged for production use

XMLHttpRequest failed on App

南笙酒味 提交于 2020-02-14 07:57:46
问题 I'm trying to run a simple singup example on my mobile app using Ionic framework and Parse.com. The code is simple as follows: Parse.initialize(APP_KEY, JS_KEY); Parse.User.signUp("my.user", "123456", {}, { success: function(user) { // Hooray! Let them use the app now. console.log('yuhuuu ' + user) }, error: function(user, error) { // Show the error message somewhere and let the user try again. alert("Error: " + error.code + " " + error.message); } }); This code works when I test it on my

XMLHttpRequest failed on App

混江龙づ霸主 提交于 2020-02-14 07:56:02
问题 I'm trying to run a simple singup example on my mobile app using Ionic framework and Parse.com. The code is simple as follows: Parse.initialize(APP_KEY, JS_KEY); Parse.User.signUp("my.user", "123456", {}, { success: function(user) { // Hooray! Let them use the app now. console.log('yuhuuu ' + user) }, error: function(user, error) { // Show the error message somewhere and let the user try again. alert("Error: " + error.code + " " + error.message); } }); This code works when I test it on my

Error: Cannot match any routes. URL Segment: 'null' in Ionic Angular App

佐手、 提交于 2020-02-07 05:24:06
问题 I am developing an application using Ionic 4 with Angular and I am getting following error: VM1190 vendor.js:51847 ERROR Error: Uncaught (in promise): Error: Cannot match any routes. URL Segment: 'null' Error: Cannot match any routes. URL Segment: 'null' at ApplyRedirects.push../node_modules/@angular/router/fesm5/router.js.ApplyRedirects.noMatchError (router.js:2469) at CatchSubscriber.selector (router.js:2450) at CatchSubscriber.push../node_modules/rxjs/_esm5/internal/operators/catchError.js