Quantcast
Channel: Ionic Forum - Latest posts
Viewing all 228535 articles
Browse latest View live

Unsubscribe from FCM

$
0
0

The PluginListenerHandle you receive when registering an event listener has a remove method. Is this insufficient for your needs?


Ionic 4 can't dismiss loading controller. Unhandled Promise rejection error

$
0
0

I would find this code much easier to follow without all the async and await, but I think the most pressing problem is that you’re assigning the loading controller to a lexical variable in presentLoading and trying to dismiss it from a controller property.

Need advice for sharing code between multiple projects

$
0
0

No, it depends on how you build them. You can build the services for each specific component.
For example, you said you need one that handles the discovery/handling of BLE.

So you need to brainstorm on what belongs to this specific feature and create a workflow about this component so you can get a greater understanding Of how it generally works.

Read documentation and look at tutorials of stencilJS. You’ll be surpirsed at what you see.

Update project from Ionic 4 to 5

Ionic cap run android -l --external seems to require ssl flag

$
0
0

Following the guide for Rapid App Development with Live Reload, I tried to test it on a android version 9 device.
The app showed an error (CLEARTEXT not allowed).

Rerunning with --ssl fixed the issue.

Now the --ssl flag is shown to be experimental, so in short should we use it always from now on, or is there an alternative solution?
Thanks,

Ionic + Firebase Build for iOS and Android Not Working/Complex Issues

$
0
0

my team and I have tried everything when it comes to taking our Ionic app that uses Firebase and getting it to work for iOS and Android. The app works perfectly fine with the command ‘ionic serve’ and utilizes Firebase with no issues whatsoever. The issues arise however when we try to build the app for Android or iOS.

When we build it using normal methods and tutorials, the app is stuck on an indefinite loading screen because it is not interacting with Firebase. From there however we assumed that the app was not able to connect to the Firebase project. So we decided to try adding the Firebase dependencies in the gradle files for Android and the pod files for iOS. However doing so has caused a plethora of other issues and problems while building the application. Not only that, but it seems like every bug we fix causes other issues somewhere. This is literally the last thing we have to do and we’ve been at it for a week and a half with no luck.

What We Need: We need someone who has experience taking an Ionic app that uses Firebase and getting it to work for an iOS and Android release build. There are many tutorials online for how to get Firebase to work with Ionic as well as how to build an Ionic application for iOS and Android. There are absolutely no tutorials(or none that we could find) in how to get an Ionic application with Firebase working on iOS and Android. This issue may also take a while to solve, so we may ask for more help from people who can give us answers.

If you can help us with this issue, we would greatly appreciate it. We are college students so we don’t have much capital, but we will do what we can! We are stuck in a bind here and we have gotten everything else to work. We have learned quite a lot from this journey and it would absolutely suck if we were to give up here! We just really need some help, thank you in advance!

Update project from Ionic 4 to 5

Ionic + Firebase Build for iOS and Android Not Working/Complex Issues


Full screen slides / photo gallery

$
0
0

It’s working but it closes my app. I found below working code:

this.platform.registerBackButtonAction(() => {
      try {
        // If full-size image gallery is open, close it.
        if (document.getElementsByClassName('pswp--open').length !== 0) {
          document.getElementsByClassName('pswp--open')[0].classList.remove('pswp--open');
        }
      } catch (error) {
        console.log(error.errorMessage);
      }
    });;

React route with * path is always choosen

$
0
0

Here is a simple example of my routes, according to docs, react will look at the routes from top to bottom looking for a match, but in this app having the last route be path="*", it always defaults to that route, if I remove the last route, the other routes start working again.

Is this a bug, or is my approach wrong in some way?

     <IonRouterOutlet>
        <PrivateRoute path="/home" component={Home} exact={true} />
        <PrivateRoute path="/tab1" component={Tab1} exact={true} />
        <PrivateRoute path="/tab2" component={Tab2} exact={true} />
        <Route path="/" render={() => <Redirect to="/home" />} exact={true} />
        <Route path="*" component={NotFound} exact={false} />
     </IonRouterOutlet>

Ionic + Firebase Build for iOS and Android Not Working/Complex Issues

Ionic CPF/CNPJ Mask! Help!

$
0
0

Olá @hammachado! Seja bem vindo à comunidade! Desculpe, não vi a sua mensagem antes. Provavelmente funcione com pequenas adaptações…

Welcome to the community! Sorry, I didn’t see your message before. It may works, if you do some adaptations.

Tinder swiper UI in Angular / Ionic 4

Need advice for sharing business logic between multiple projects

$
0
0

I’ll definitely do that, thanks for the info.


Quick note: if anybody else has a suggestion, I am also open to other ideas. Specifically considering I’m currently trying to learn more about Angular libraries in general. :slight_smile:

For the sake of clarity, I also just tweaked the thread title to make it clear that I’m trying to share internal business logic specifically.

Data storing

$
0
0

Hi all, need some help here.

I am creating an essay app for my school where the app will display all different kinds of examples of essays. I would like to ask, where can I store my essays in? Like all the data where can I stored it and display it through my ionic 4 app?

I definitely can’t keep creating new pages and write the essays in my html file right.

Thank you for your help!


Ionic 4 Loader is getting dismissed but data is not shown

$
0
0

Hello @rapropos. Thank you for your reply. But now I am facing strange problem. The loader is ge.tting dismissed but data is not shown. If I again refresh page it is working fine. Thank you in advance. I have updated the question

Css clip-path shows the scroll bar on ion-content

$
0
0

i noticed that when ever i use clip-path on any element this weird long scroll bar always appear on my screen, i don’t know if anyone has ever come across this and how they were able to solve it. i also want to know why this weird behavior.
p.s i use Ionic 4

Right use on ion-content

$
0
0

Hi.

First time creating a ionic app here. And is wondering if using ion-content like this is bad?

<ion-app>
  <ion-header></ion-header>
  <ion-content>
    <ion-router-outlet></ion-router-outlet>
  </ion-content>
</ion-app>

Rather then having ion-content on each page?
Or does anyone have a golden standard for this?

Issue When Runnig application

Data storing

Viewing all 228535 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>