ionic-framework

Ionic 4 Correct way to show Loading, No records and data block

假如想象 提交于 2021-02-05 10:42:06
问题 Here's the problem. I have three states of almost all the pages in my app. 1. Loading (where I want to show spinner within the page and for that I have created a component already) 2. No Records Found ( An image in center of the page and I have a component for this as well ) 3. Data loading and my actual content without any wrapper around that which can mess up the design. Thats how I am doing this currently which doesnt look great on every page. <app-spinner *ngIf="!data; else page_content">

FirebaseError: Messaging: This browser doesn't support the API's required to use the firebase SDK. (messaging/unsupported-browser)

时光毁灭记忆、已成空白 提交于 2021-02-05 08:45:17
问题 I'm developing a Ionic 5 app both for Android and iOS. I'm using angularfire https://github.com/angular/angularfire/tree/v5 and I'm having some issues. In particular, this library works good when using Firestore, but when I try to use Cloud Messaging to receive notifications on my Android device, it raises an error: FirebaseError: Messaging: This browser doesn't support the API's required to use the firebase SDK. (messaging/unsupported-browser) . I followed the tutorial available on the

Uploading a video to a server with Ionic

我与影子孤独终老i 提交于 2021-02-05 07:55:09
问题 I am currently working on a Ionic application and I need to upload a video to my server with the Ionic Native File Transfer Plugin. For this, I get my video from a GoPro. The downloading works. But I cant' upload the video. I checked, the application does not even connect to the website. Upload code: upload(){ let options: FileUploadOptions = { fileKey: 'file', fileName: 'GOPR0061.MP4', headers: {} } var url = "http://mywebsite.com/api/video" ; this.fileTransfer.upload(this.video.toURL(),

Upload failed: You need to use a different version code for your APK because you already have one with version code

蓝咒 提交于 2021-02-05 06:43:15
问题 THE SITUATION: Sorry in advance if this question has been asked already three times. But none of those solutions are working for me. I need to upload a new version to Google Play of my Ionic app. The upload process it has always worked fine but this time i get this error: You need to use a different version code for your APK because you already have one with version code 101078. THE PUBLISHING PROCESS: I am not using Android Studio. To publish the app i was simply building and signing the app

Upload failed: You need to use a different version code for your APK because you already have one with version code

邮差的信 提交于 2021-02-05 06:42:24
问题 THE SITUATION: Sorry in advance if this question has been asked already three times. But none of those solutions are working for me. I need to upload a new version to Google Play of my Ionic app. The upload process it has always worked fine but this time i get this error: You need to use a different version code for your APK because you already have one with version code 101078. THE PUBLISHING PROCESS: I am not using Android Studio. To publish the app i was simply building and signing the app

Angular circular dependency warning

不想你离开。 提交于 2021-02-05 04:51:15
问题 tl;dr: scroll down to solution I have a circular dependency and I am getting a warning, rightfully so, however, I am managing it. The issue is that I have a chat component. In the corner you can select to see their profile page, while in their profile page you have the option to send them a message, hence the circular dependency. I am managing this by chat.component public async openProfile(): Promise<void> { this.modalCtrl.dismiss(); //closing the chat component before opening the profile

Angular circular dependency warning

本小妞迷上赌 提交于 2021-02-05 04:47:14
问题 tl;dr: scroll down to solution I have a circular dependency and I am getting a warning, rightfully so, however, I am managing it. The issue is that I have a chat component. In the corner you can select to see their profile page, while in their profile page you have the option to send them a message, hence the circular dependency. I am managing this by chat.component public async openProfile(): Promise<void> { this.modalCtrl.dismiss(); //closing the chat component before opening the profile

How do I change the number of login attempts in Firebase?

安稳与你 提交于 2021-02-04 21:05:47
问题 I am a mobile developer and I am using firebase for my app which have built with Cordova and Ionic framework. So .. I implemented Firebase Auth functionalities such login/signup, email verification, forgot your password, ... But I found this message today while logging in with app. "We have blocked all requests from this device due to unusual activity. Try again later." How do I change the number of login attempts in Firebase? 回答1: You can't change login attempts. A blocked user can retry

Ionic 2+ Cordova OneSignal NotificationExtenderService

孤者浪人 提交于 2021-01-29 17:35:23
问题 I'm writing an application in Ionic 3 that uses the Cordova OneSignal plugin (onesignal-cordova-plugin 2.8.4). Scenario: The application is killed and a push notification is received: I need to know that the notification was received BEFORE the notification is clicked or the application is opened. The plan is to write code that runs as soon as a notification is received that will send a "receipt" to the main server. This is only happening if the Ionic application is running in the background

How to change buttons color on click of button in ionic 4

梦想与她 提交于 2021-01-29 17:27:53
问题 I want to change buttons color on click of button. I am creating a quiz application. On click of a button if the answer is correct the color should be changed to green and if wrong it should be changed to red. This is worked. I have done this. But now the issue is if the answer is wrong then its color changed to red and correct answers button color changed to green. How to do this? play-quiz.html <ion-list> <ion-row class="marginTop"> <ion-col class="border ion-text-center"> Grand Central