ionic-framework

What's difference between Ionic native Firebase vs Firebase-Analytics?

我们两清 提交于 2020-01-06 08:43:18
问题 What's difference between: https://ionicframework.com/docs/native/firebase/ and https://ionicframework.com/docs/native/firebase-analytics/ I already use "firebase" for push notifications, but I need register pageviews manually, I need use these two plugins? 回答1: Ionic 'Native' Firebase and Ionic 'Native' Firebase Analytics are the Ionic wrappers that are "providing a common interface for all plugins and ensuring that native events trigger change detection in Angular". These wrappers can't

Ionic 3/4 How to stop app kill on swiping from recent apps?

限于喜欢 提交于 2020-01-06 07:53:59
问题 I have a project to build an app based on ionic4/ cordova, running in the background all the time. It basically sends data to server every hour when in the background or foreground. But the app gets killed when the app user swipes it right in the recent apps. I have searched a lot and asked help from various people and documentations, but haven't got any clue till now. I am new to Ionic, please suggest some help, how to deal with this problem? thanks in advance :) 回答1: I suppose you are

Ionic 3/4 How to stop app kill on swiping from recent apps?

天大地大妈咪最大 提交于 2020-01-06 07:53:00
问题 I have a project to build an app based on ionic4/ cordova, running in the background all the time. It basically sends data to server every hour when in the background or foreground. But the app gets killed when the app user swipes it right in the recent apps. I have searched a lot and asked help from various people and documentations, but haven't got any clue till now. I am new to Ionic, please suggest some help, how to deal with this problem? thanks in advance :) 回答1: I suppose you are

Ionic4: Bottom sheet

北慕城南 提交于 2020-01-06 07:32:20
问题 I want to display a bottom sheet with text and table. Action Sheet is perfect in design but it does not allow to give HTML content. Is there any way I can use the bottom sheet in Ionic4. Below is a sample design 来源: https://stackoverflow.com/questions/54663521/ionic4-bottom-sheet

Ion-router-outlet causing issues with already existing router-outlet in Angular

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-06 07:22:22
问题 In my app, in manager.component.html, I have the following, which has a router-outlet, and my app works wonderfully: <div class="cu-manager2__router-outlet" [class.manager-space-bar]="!(hideSpacebar$ | async)" > <cu2-spaces-bar ></cu2-spaces-bar> <router-outlet [hidden]="!(project$ | async)"></router-outlet> </div> I decided to add a ion-menu as a slider: <ion-menu side="start" menuId="sliding-menu" class="slider-drawer" type="overlay" (ionWillOpen)="menuOpened()" (ionDidOpen)="menuOpened()"

Ionic Storage is not working on Android device

梦想的初衷 提交于 2020-01-06 07:15:08
问题 I'm new to the Ionic Framework, and I'm doing an app that preserves the user login so it can show a different page when user is logged. And for doing this, I'm saving the user ID into the local storage. This works fine when I do ionic serve and testing the code on browser, but it doesn't work on my Android device (so I run ionic cordova run android ). Why? I have set the Storage right by using IonicStorageModule.forRoot() in app.module.ts -> imports[...] . Here's my code and my Ionic specs:

Sending http post to ocr space api

北战南征 提交于 2020-01-06 07:13:31
问题 I’m trying to make an HTTP request from a Ionic app to to ocr.space API. this is the code I wrote, the base64image comes from the Camera plugin and is correctly formatted: let base64Image = 'data:image/jpeg;base64,' + imageData; let data = "base64Image=" + base64Image; this.http.post("https://api.ocr.space/parse/image",data,{ headers: new HttpHeaders().set('Content-Type','application/x-www-form-urlencoded') .set('apikey',this.APIKEY), }) .subscribe((res)=> console.log(res)) However the

Hide and show modal on same button click in Ionic1

核能气质少年 提交于 2020-01-06 07:12:52
问题 I want hide and show a div based on same button click click part <a class = "tab-item" ng-click="showDetails = ! showDetails"> <i class = "icon ion-paperclip"></i> Attach </a> Edit I have removed modal and used only ng-click and tried,But here am getting true/false for each click.But my <div> is not visible. {{showDetails}} <div class ="bar bar-footer" ng-show="showDetails" > <div class = "tabs tabs-icon-bottom tabs-striped tabs-color-gray hide-on-keyboard-open" style="background-color: white

ERROR TypeError: Cannot read property 'name' of undefined (Ionic 4)

久未见 提交于 2020-01-06 07:07:41
问题 No answers to similar questions have helped me BACKGROUND: I have been configuring a SQL Server connection from my Ionic app. See my previous question for context Ionic connects to ASP.NET MVC, and that connects to SQL Server. I have managed to get records to be added to the SQL database, where the id property auto-increments but the name property is always NULL despite me passing a string for the property via ion-input. ERROR MESSAGE: ERROR TypeError: Cannot read property 'name' of undefined

ionic post in rest service error with Cors enabled service

北城余情 提交于 2020-01-06 07:06:22
问题 Hello I'm a newbie in ionic.I want to call post service in ionic but I always get this error ; "" Failed to load http://mywebservice.com/api: Response to preflight request doesn't pass access control check: The value of the 'Access-Control-Allow-Origin' header in the response must not be the wildcard '*' when the request's credentials mode is 'include'. Origin 'http://localhost:8100' is therefore not allowed access. The credentials mode of requests initiated by the XMLHttpRequest is