You could convert it using Observable.fromPromise()
, but no I don't think it's possible to do multiple scans in a single call.
Barcode Scanner Observable and Multiple Scans
Hide header on scroll
Using Push Notification
I am building an ionic2 application and I want to enable push notification and I have seen many ways to do it like using firebase and google but I have website and I want to send my notification from my website to the app and I was wondering how to do it do I have to build my own API or something like that I would like to mention also that I have a table for the notification that contains the following fields (message, subject and the address of the device)
Navigation after Modal is messed up
Thank you. I'm not really relying on URLs currently. The main problem is, when I do nav.push from the callback of a modal window the URL gets all messed up, then let's say I change something in my code, the live update automatically tries to refresh the page so the new code is there. The problem is the url is no longer "http://localhost:3000", it is "http://localhost:3000/#/tabs/t0/chat/channel-chat" so the application fails because that page needs information sent to it, which it gets from the nav.push(page, data); call. I am worried that if I try to actually push a mobile version of the app, to say Android, if someone goes in and starts doing normal chat, I don't know what will happen because for whatever reason that nav.push screws up the URL. I will see if I can find anything in the changelog, but I was hoping someone could tell me why the nav.push is destroying the URL, but only when called from a modal.onDidDismiss. That way I don't run in to any troub;e down the line. Like if someone is in private chat, then exits the app (on mobile) when they open the app again, is it going to try to go to that messed up URL that, or will it actually work correctly. It is all just confusing, I just don't understand why nav.push breaks the URL, only in the context of a modal callback.
How to properly re-render a component in Ionic manually
I tried everything thing before try this solution, and I thought the same thing, that is a ionic-native bug, but I don't have time to spend, so this solution works for the case.
Navigation after Modal is messed up
Also, if it matters, when I run ionic-v I am running 3.4.0, not the newest 3.5.0. Not sure if that matters or not, just wanted to put it out there.
InAppBrowser Not Auto Closing
How did you implement this?
Do the same thing for the error case.
virtualScroll with cards? approxItemHeight?
It is possible. Set like this <ion-list [virtualScroll]="people" approxItemHeight="100px">
How to cache images locally?
ionic-image-loader by @ihadeed sounds like what you need.
I haven't tested it but the imageLoader.preload('http://path.to/image.jpg')
probably also works with local images from your app bundle.
Android build error . What to do?
Did you read through all the posts that appear when you search for "Could not reserve enough space for"?
Hide header on scroll
This posts from joshmorony should help if you follow them well.
Second Post
Best way to implement list with toggles and sending it back to server
Hmmm...right, got your point(s).
Regarding Promise, should be able to replace it with RxJS Observable. But yes, this way of implementation will certainly introduce tight coupling.
Thanks @rapropos - appreciated!
(click) handler on dynamic text
I would use this strategy.
Update for @ionic/app-scripts 2.0
Hey everyone!
We just cut a release for @ionic/app-scripts
2.0.0!
Now the reason for the major version change in app scripts is due to a change in your project.
We've made a note of this in the app-scripts changelog
But TLDR; in your src/index.html
, add a new script tag for build/vendor.js
Some info on this:
We've gotten a lot of feed back from all of you regarding the speed of app-scripts. We've done a lot of work inside app-scripts to speed up the processing in the 2.0 release, one of which is splitting the vendor code, from your code.
This means that when your build your app, the vendor code (angular/rxjs/anything in node_module) will all get bundled into vendor.js. This mean, all of your app specific code will get bundled into main.js and any subsequent chunks if you're lazy loading.
Now main.js can be processed much faster, since it doesn't need to search through ALL of node_modules.
During serve/development, you should see much faster build/reload times because of this.
If you run into any issues, please open a new issue on the app-scripts repo.
Cheers!
Update for @ionic/app-scripts 2.0
I have x tasks to execute. How to execute y in parallel until all are finished?
I would redesign the API in order to bundle the requests into larger chunks so that you don't have thousands of them. That will save on connection overhead as well.
NavGuards with ionic-angular 3.5.0 has a breaking change
I still don't understand why people want to jump through all these guard hoops instead of just conditionally setting the app component's rootPage based on whether the user is authenticated or not.
InAppBrowser - Return from opened external Link
What does that mean? Always on the same page? On random pages? On something completely else?
Cannot display contact's image using the contacts plugin
You are lucky, I just implemented (and explained) this for another thread:
Is is possible to implement multi threading in ionic with bluetooth async communication
You want multi-threading to then only use one thread?
Please explain the wanted functionality of your app in a more general way. I think you are thinking much too complicated right now.