ionic-framework

Sign In With Apple - Ionic 3

陌路散爱 提交于 2020-08-25 04:40:02
问题 Am trying to implement sign in with apple on my ionic 3 project using the following plugin and wrapper ionic cordova plugin add cordova-plugin-sign-in-with-apple npm i --save @ionic-native/sign-in-with-apple Implementation as described on the plugin docs import { SignInWithApple, AppleSignInResponse, AppleSignInErrorResponse, ASAuthorizationAppleIDRequest } from '@ionic-native/sign-in-with-apple/ngx'; constructor(private signInWithApple: SignInWithApple) { } this.signInWithApple.signin({

CSS/JS: Change opacity on swipe

ぃ、小莉子 提交于 2020-08-25 04:05:19
问题 I want to change the opacity of an element while swiping on it. I would like to achieve an animation similar to the one in the snippet, that is applied gradually depending on how much my finger/cursor has dragged the element while swiping. EDIT: The animation is the same as clearing a notification in Android My first idea has been to handle the drag event and change the opacity depending on the position of the element and the width of the screen. Is this a good solution? Is there a better one

Error: No Firebase App '[DEFAULT]' has been created

我的梦境 提交于 2020-08-25 01:58:49
问题 I'm using Ionic2 and when I go to localhost:8100 (after doing ionic serve ) I receive the error you can see in the following image. app.component.ts looks like this: import firebase from 'firebase'; import { Component } from '@angular/core'; import { Platform } from 'ionic-angular'; import { StatusBar } from 'ionic-native'; import { HomePage } from '../pages/home/home'; @Component({ template: `<ion-nav [root]="rootPage"></ion-nav>` }) export class MyApp { rootPage = HomePage; constructor

Error: No Firebase App '[DEFAULT]' has been created

烂漫一生 提交于 2020-08-25 01:57:53
问题 I'm using Ionic2 and when I go to localhost:8100 (after doing ionic serve ) I receive the error you can see in the following image. app.component.ts looks like this: import firebase from 'firebase'; import { Component } from '@angular/core'; import { Platform } from 'ionic-angular'; import { StatusBar } from 'ionic-native'; import { HomePage } from '../pages/home/home'; @Component({ template: `<ion-nav [root]="rootPage"></ion-nav>` }) export class MyApp { rootPage = HomePage; constructor

ionic cordova run android An error occured while running subprocess native-run

孤街醉人 提交于 2020-08-20 03:58:47
问题 I am trying to run my ionic app on an android device (Xiaomi Pocophone) by running the following command: ionic cordova run android However, I get the following error message: BUILD SUCCESSFUL in 7s 42 actionable tasks: 42 up-to-date Built the following apk(s): C:\laragon\www\ionicProject\platforms\android\app\build\outputs\apk\debug\app-debug.apk > native-run.cmd android --app platforms\android\app\build\outputs\apk\debug\app-debug.apk --device [native-run] Selected hardware device 4d65535f

Local Notification scheduler time and voice Not working Ionic 4

我与影子孤独终老i 提交于 2020-08-10 20:39:03
问题 I have try to use Local Notification On my app. -Android lower Version it’s working at started time.And app close then not show Notification and not play Mp3 sound. -Android Higher Version :- It working scheduler time Local Notification but not show icon and sound. I don’t know what is problem. I use service create Notification and I use set time to play song without run background service.so I found Local Notification but it did’t worked. Please Help me How to solve my problem any other

Local Notification scheduler time and voice Not working Ionic 4

假如想象 提交于 2020-08-10 20:38:09
问题 I have try to use Local Notification On my app. -Android lower Version it’s working at started time.And app close then not show Notification and not play Mp3 sound. -Android Higher Version :- It working scheduler time Local Notification but not show icon and sound. I don’t know what is problem. I use service create Notification and I use set time to play song without run background service.so I found Local Notification but it did’t worked. Please Help me How to solve my problem any other

Local Notification scheduler time and voice Not working Ionic 4

五迷三道 提交于 2020-08-10 20:37:56
问题 I have try to use Local Notification On my app. -Android lower Version it’s working at started time.And app close then not show Notification and not play Mp3 sound. -Android Higher Version :- It working scheduler time Local Notification but not show icon and sound. I don’t know what is problem. I use service create Notification and I use set time to play song without run background service.so I found Local Notification but it did’t worked. Please Help me How to solve my problem any other

ionChange works just once on the page and reactive form validators don't take effect every time a select it's changed

眉间皱痕 提交于 2020-08-10 19:35:10
问题 What I wanted to achieve is to make different formControls mandatory or to clear them depending on a select option and it works, but the validators work just once on the page and not every time I change the select option. If I select "cm" and clear the input and go and select "ft" it works, but if I clear the "ft" input and go and select "cm" it doesn't work and the "ft" is now mandatory even though I wrote to clear the validator on "ft" if "cm" is selected. If you guys have any idea why I

Ionic 5 Angular 9 project doesn't play the functions but does alert from external Javascript Files

吃可爱长大的小学妹 提交于 2020-08-10 19:16:07
问题 Hello i have an Ionic 5 Angular 9 project. I want to call external javascript files. The files are being called as wanted because i put an alert and it shows the alert as wanted but it doesn't call the jquery functions angular.json "scripts": [ "node_modules/jquery/dist/jquery.min.js", "node_modules/jquery/dist/jquery.js", "node_modules/bootstrap/dist/js/bootstrap.min.js", "src/assets/js/bootstrap.min.js", "src/assets/js/custon.js", "src/assets/js/charts.js", "src/assets/js/colors.js", "src