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

Ionic 4 Cordova Custom Plugin using Ionic-Native

$
0
0

I’m not that much into this so all i can do is say what i so at plugin development. I include a Ionic Wrapper into the Plugin (Example)


Mandatory update for Android and iOS

$
0
0

Did you have run research if this functionality is available at native apps? If not and you use a Backend, you have to create a ApiCall which returns a variable (the minVersion). Than call this endpoint at app startup and check if the version is higher than the current App Version).

So you have to upgrade the config variable if you upload a new App to an Store. In Our App we have on variable for ios and one for android.

How to implement a horizontal scroll like In above image in ionic 4/5?

$
0
0

I need lazy loading …
.
Does this works with ion virtual scroll?

Import all photo from photo library in ionic page

$
0
0

(post withdrawn by author, will be automatically deleted in 24 hours unless flagged)

Ionic4 currency mask reactive forms

$
0
0

Its hard for me because all my form was in Ion-input

Ionic 4 menu with user role based authentication

$
0
0

i want role wise show menu item in menu
eg

<ion-list>
      <ion-item>Menu Item</ion-item> this for user role admin
      <ion-item>Menu Item</ion-item>this for user role user
      <ion-item>Menu Item</ion-item>this for user role Agent
      <ion-item>Menu Item</ion-item>
      <ion-item>Menu Item</ion-item>
    </ion-list>

Import all photo from photo library in ionic page

Ionic 4 menu with user role based authentication

$
0
0

Use conditional *ngIf templating:

<ion-list>
      <ion-item *ngIf="userRoleIsAdmin">Menu Item</ion-item>
      <ion-item *ngIf="userRoleIsAgent">Menu Item</ion-item>
 </ion-list>

How to implement a horizontal scroll like In above image in ionic 4/5?

How to call REST service on SMS receival when app is closed?

$
0
0

hi are you find any solution about this
because i need this

How to call REST service on SMS receival when app is closed?

$
0
0

i don’t think it possible with a Cordova based App. You cannot run your js code when the App isn’t running. I didn’t even know if it possible native, if yes you have to build your own plugin which does your thing

Ionic 4 & Angular 8

$
0
0

First thing I would do is synchronize and update everything that starts with “@angular” (including the “-devkit” stuff) to the latest available 8 (or 0.80* as warranted) and then run npm i. I suspect your problem derives from parts of your toolchain being out of sync.

Ionic 4 menu with user role based authentication

$
0
0

In addition to @morphist’s excellent advice above, see here for a method of communicating logout/login changes across the app, including whereever this menu is hosted.

Ionic Bluetooth Serial Module / Unsubscribe & UnsubscribeRawData methods missing?

$
0
0

Hi All,

I’ve been developing an Ionic(V4)/Angular 8 app using the Bluetooth serial module and everything works fine, the app can use the Bluetooth Serial Library to scan and connect to devices. However, 2 methods are missing from the library that are included in the original Github:
unsubscribeRawData()
unsubscribe()

This is a problem as when trying to disconnect from one device and connect with another the library stays subscribed to the data stream and consequently receives data from 2 devices. I added this to the Github repo as an issue and got this response from Don, the Github owner:

don commented 24 days ago

The functions are available in this plugin, they’re missing from the Ionic wrapper.

The best solution is to add them to the Ionic wrapper and send them a pull request. Alternately you can access the plugin directly from ionic and just call the functions.

Is it possible to get the Libary updated to include the methods in the Ionic Wrapper? Or am I missing something and is there a work-around to unsubscribe from previously subscribed data streams.

Any help or guidance on this matter is much appreciated

Thanks!

No error returned but no data returned on successful json post to api

$
0
0

Please see if your problem persists when using the Angular HttpClient and an HTTPS endpoint.


HttpClient infinity Timeout?

$
0
0

That’s a good question, and hard to answer directly. What I can say is this:

I often use the “message-in-a-bottle” metaphor to describe one way to think about asynchronous programming. HttpClient requests are a replicator combined with a bottle cannon. Once you queue up a request, it just sits in the cannon until somebody subscribes to it. At that point, the ordinary course of events is that the request goes through, the returned Observable emits the requested response, and then completes. The cannon gets packed up and put into storage. However, if something goes wrong, instead of the ordinary response, you get an HttpErrorResponse, and the cannon stays ready to fire further bottles, but won’t do so until you ask.

So there isn’t a timeout, and I guess “infinite holding pattern” isn’t a bad description. You’re in total control of what happens next, though. If you subscribe again to the same request, it will fire again at that point. Rinse and repeat until the request succeeds or you give up on it.

As for best practices, two important things about the code snippet you posted:

  • Never access anything that starts with a leading underscore from outside the class that defines it. Regular readers of this column are probably sick of hearing me rail about how much I hate JavaScript, but this is another terrible thing about it. It has no proper access control, so we have to rely on convention. In a sane language, you would not be able to access _body; in JavaScript-land the language won’t save you from yourself: you have to abide by the convention and agree not to.
  • post (and any other HttpClient function that returns content) takes a return type parameter: this.http.post<ReturnedThingy>(url, food) will give you an Observable<ReturnedThingy>. You virtually always want to take advantage of this.

Error while send Email in Ionic 4

$
0
0

First thing I would do is obey this part of the error message.

Ionic Bluetooth Serial Module / Unsubscribe & UnsubscribeRawData methods missing?

$
0
0

I don’t think I’d describe it as a “work-around”, because it looks to me to be the deliberately-intended way of doing things. When you call subscribe() (or subscribeRawData) on the plugin (not a name I would have chosen, because it’s going to make this conversation a lot harder, but nobody asked my opinion) you get an Observable. I assume you then call subscribe() on that Observable. Don’t throw away the return value of that call. You get back a Subscription at that point, and calling unsubscribe on that Subscription calls the underlying unsubscribe or unsubscribeRawData as appropriate within the plugin.

Ionic 5 - what is app-explore-container?

$
0
0

I imagine that is as good a guess as any!

Read sms when app is closed

$
0
0

hi all Can we able to read the sms while receiving, when the app is closed.
any suggestion thanks

Viewing all 228603 articles
Browse latest View live


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