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

Allow click-event only if a boolean is true

$
0
0

Hello,
I have a little quiz, where a user needs to tab a button to select an answer. So each button has a click event calling the method “checkAnswer” where the boolean break is set to true. At the same time, the ion-content has a click event calling the method “nextQuestion”.
This method looks like that:

nextQuestion() {
    if(!this.break) {
      return;
    }
   ....
  }

Now If I don’t click a button, this works. but If I click a button, I go to the next question immediatly. But I want the click on the answer and the next click then gets me to the next question. It seems like the button-event is executed before the ion-content-event, which means break is set to true before nextQuestion can return.

How would I fix this?


The keyboard doesn't work done with inputs

$
0
0

Related code:

<form [formGroup]="form">
        <ion-grid>
          <ion-row class="ion-background-form-login">
            <ion-col [size]="6">
              <ion-item lines="none" no-padding>
                <!-- <ion-label position="stacked">Username</ion-label> -->
                <ion-input
                  formControlName="first_name"
                  type="text"
                  placeholder="..."
                ></ion-input>
              </ion-item>
            </ion-col>
          </ion-row>
        </ion-grid>
</form>

Ionic:

Ionic CLI : 6.9.1
Ionic Framework : @ionic/angular 5.1.1
@angular-devkit/build-angular : 0.901.7
@angular-devkit/schematics : 9.1.6
@angular/cli : 9.1.6
@ionic/angular-toolkit : 2.2.0

Capacitor:

Capacitor CLI : 2.1.0
@capacitor/core : 2.1.0

Cordova:

Cordova CLI : 9.0.0 (cordova-lib@9.0.1)
Cordova Platforms : not available
Cordova Plugins : no whitelisted plugins (1 plugins total)

Utility:

cordova-res : not installed
native-run : 0.3.0

System:

NodeJS : v10.16.2
npm : 6.14.8

Ios App auto Open script tag url in browser

$
0
0

Hi there, hope you will be fine. So, I created an app in ionic and its work fit and fine. The problem is that I was used this <script src="https://js.stripe.com/v3/"></script> in my index.html file to use stripe. And its work fine in android and ios too. but the problem in ios is that when app loads this link https://js.stripe.com/v3/ automatically gets open in a browser. I did not find anything on the google about this issue. Please help, thanks!

Reverse Array in ngFor* for ionic

Reverse Array in ngFor* for ionic

App Rejected by Google - Webview - Ionic PWA V5

$
0
0

I’ve had an app rejected by Google…

"
Webviews
We don’t allow apps whose primary purpose is to provide a webview of a website, regardless of ownership, or to aggregate content that does not belong to the developer. To resolve this issue, please remove violating content and resubmit your app.
"
Now the website exists as an Ionic PWA …

PWA Website

…but the app is compiled with Ionic and does not rely on the presence of this website at all.

Has anyone been in a similar situation and know how to resolve this?

I can’t remove the website at the moment, but if I did, would I be more likely to get to app approved, or is there something inherent in the way that Ionic compiles apps that this app will always be regarded as a WebView???

Can i directly upload to an ftp and server the app for dev on a webspace without "ionic build"?

$
0
0

That’s because it launches a special webserver that has information about what has changed and what hasn’t (that is not available to j. random httpd on the internet).

Are you talking about Live Editing?

Allow click-event only if a boolean is true

$
0
0

You’re doing a couple things here that, while they aren’t strictly “illegal”, are guaranteed to cause whoever has to maintain this code (which is very likely you in a month or two) to tear their hair out.

I hope that smoothing out these design warts will have the happy side effect of making your problem vanish.

First, don’t use any of these keywords as property names (bye, bye, break).

Secondly, DOM event propagation is (to my eyes, at least) voodoo. So I recommend never having overlapping elements listening to the same event. In practice, this means that if a button has a (click) handler, nothing enclosing said button should. And it tends to lead to very unintuitive UI when arbitrary elements have click handlers.

So my first thought would be to have a “next question” button whose disabled status is keyed to whatever you decide to rename break to, and have that trigger nextQuestion, not clicks on the content.


Ionic 5 after internet connects reload current page

$
0
0

@rapropos thanks for the reply.
i have over 30 pages.subscribe disconnect and connect handler in all these pages will be a long process.now whenever internet disconnects a modal shows, over the current page.it will dismiss only when there is internet.if i can reload current route, that will be easy and for future pages i don’t have to write extra subscriptions.

Action required: Update your Android targetSdkVersion by Nov 2, 2020

Access to XMLHttpRequest at 'https://authapistaging2.mymonow.com/api/auth/token/create' from origin 'http://localhost:8101' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource

$
0
0

i solve that issue using advanceHTTP plugin Provided by ionic

Ionic IN app browser I wants to close in app browser on a specific url :::: code in java script that i found it on stackoverflow is below. I wants to do same in ionic

$
0
0
 $cordovaInAppBrowser.open('http://localhost:3000/#/mypath/', '_blank', options).then((event) ->
    # success
    return
    ).catch (event) ->
      # error
      return

  $rootScope.$on '$cordovaInAppBrowser:loadstart', (e, event) ->
    $log.log 'loadstart', e, event
    if event.url.match('mobile/close')
      $cordovaInAppBrowser.close()

Instructions to make your Email Marketing procedure

$
0
0

On the off chance that you are perusing this post it is on the grounds that you need me to disclose how to do email advertising. You need to perceive how you can get clients and salary on account of your mailing list.

In this aspect of the post I clarify only that. All the pragmatic data you need so that from today you begin to work your email advertising.

To put you, I have isolated the remainder of the article into 4 significant segments:

Make your system without any preparation.

Conquer the SPAM hindrance

Get your messages opened (the hardest).

Increment your endorser list.

Also, presently, indeed, we’re going to gut what email advertising truly is.

1 The system: the 5Ws of email advertising

To characterize your system you should be clear about specific issues:

Who?

Why?

What?

When?

How?

Simply addressing these 5 inquiries you will have everything the data you require to raise your guide.

  1. Who ?: characterize your optimal peruser

This is consistently the initial phase in any promoting technique. What’s more, is that similarly as we have to know who we are going to when we compose a post , when composing an email we additionally need to realize who is our optimal customer.

The explanation is straightforward: in the event that you don’t know for whom you compose your missions, you will always be unable to offer the correct substance, compose the best deals messages or set up a relationship of trust.

You need to get, yes or indeed, these information:

Segment information

What are your aspirations and destinations?

How is your everyday?

What are your primary issues? What else “harms”?

Your rundown of endorsers ought to be sectioned by the various interests of your crowd . This point is significant that you consider while tweaking the email.

  1. Why ?: characterize your objectives

When arranging your procedure you need to indicate 2 sorts of targets:

Commanders of the mission.

Explicit to each email.

For instance, envision that you need to make a mission to sell your new digital book.

For that you make a post where you approach the subject on which the infoproduct will turn. What’s more, in that post you put a structure that triggers an autoresponder.

Despite the fact that your definitive objective is to sell, each mail in the succession will have an individual objective. I give you a case of grouping:

Email 1: present you and your venture. Objective: to produce trust.

Email 2: connection to various posts of your blog in which you additionally talk about that subject. Objective: to include esteem, increment your position and make a requirement for the item.

Email 3: more profound substance comparable to your digital book. On the off chance that you have them, the information and insights work well indeed. Objective: gain authority and make requirement for the item.

Email 4: example of overcoming adversity and prologue to the item. Objective: set up the client for the deal.

Email 5: deals email. Objective: sell.

Knowing the targets in your email showcasing technique resembles having a compass that guides you to continue working.

  1. What ?: sort of substance

Contingent upon the goal of your mission and the particular one of the email you will send, you will make some sort of substance. I give you instances of substance.

Objective “to include esteem”: they are more select substance than those that you write in your open blog. For instance: rundown of extraordinary devices, tips, stunts, and so forth.

Objective “produce traffic”: here we would have the commonplace bulletin where we clarify the updates on the blog. You likewise have the variation that you found in the arrangement of messages before alluding to explicit posts that are intriguing for the peruser.

Objective “authority”: you can send visitor posts that you have composed on influencers’ websites or contribute examples of overcoming adversity that you have accomplished.

Objective “form trust”: it is acceptable that you present yourself and recount to your story to the perusers. Occasionally it is likewise acceptable that you embed an email wherein you tell an account. It’s tied in with seeing the individual behind you.

Be that as it may, above all else you should consider one thing when choosing what you are going to advise: it must be significant and helpful substance.

Continuously consider how you can help the individual who gets your messages. Your need # 1 ought to consistently be what the peruser needs and needs. It is entirely expected to discover online journals whose substance is excellent, yet when you buy in you lose all the appeal.

They don’t quit sending one proposal after another and the most fascinating thing they can offer you is their bulletin. Also, to inform me as to whether somebody has distributed another post I have instruments like Feedly.

On the off chance that they should simply offer that I withdraw.

Your supporters are the most notable individuals in your business after your clients. You should regard them as bona fide celebrities.

  1. When ?: the recurrence of sending

The recurrence of sending doesn’t need to be the equivalent in all missions.

While the pamphlet can be sent once per week, there are different kinds of messages that can have another cadence. Take a gander at my free Problogging course.

When you need latest email marketing list go to our web page latestdatabase(.)com for buying sales leads.

Income Tax Services

$
0
0

Welcome to Mukesh Raj & Company, We also offer a wide range of Income tax services, direct tax services in Delhi.

Ionic /angular version problem

$
0
0

Hi , I am developing an old project in ionic3
I have problem with @ionic/angular
how to know which version of @ionic/angular I should use ??
thank you


Multi touch working in web browser but not when build an apk using capacitor

$
0
0

I have created a web app using nuxt.js. This app includes a D3.js bar chart which is scrollable and zoomable. It is working perfectly fine on a web browser but when I create an apk using capacitor it is not getting scrolled and zoom as well. Please help

Ionic /angular version problem

$
0
0

@ionic/angular is the package for Ionic since Version 4. Older Versions (like Ionic 3) can be installed by: ionic-angular - I think the latest Version is 3.9.10

Ionic /angular version problem

Android App Bundle (aab) support

$
0
0

I kiiiiinda guessed that :smiley: But awesome to hear it is a top priority!

Off Topic: Other than bundle support i gotta say - after the initial setup - the experience has been a pleasure.
My mind is still slightly blown that i can update my App Store installed apps, outside of the Google/Apple environment… instantly. They can’t be super interested in that process? Not that i am complaining…

Blink Id Recognizer

$
0
0

Hi @WL0146,

I work for Microblink - the developers of BlinkID.

Can you please describe the issue you’re having with @ionic-native/blinkid?

Also, can you double check if working with @microblink/blinkid-capacitor makes things easier for you?

We’ve launched our official support for capacitor 2 weeks ago - we’re moving to this particulat integration type for Ionic apps.

Thanks,
Jurica.

Viewing all 230122 articles
Browse latest View live


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