Angular 2/Ionic 2 Feedback #1
Comments
Does this mean that this (fixed and with a much better config system) version will not be recommended for Ionic 1 projects? I feel like All Ionic 1 projects should start using the new version as well, even if it means that they will need to update their configs. Just make sure it's well documented. edit: I'm not sure about how you would use the Angular2 version in Ionic 1 (guessing you can't), but the non-angular version should really be recommended for everyone, regardless of Ionic version. |
@Maistho So, it's a little confusing right now. I will say that we are committed to supporting both Ionic 1 and 2. Ionic 1 will continue to use the client without the Angular 2 integration (thus, this repo is only for Ionic 2). The vanilla client will be available in The work that was done on the config system will be a breaking change for Ionic 1 apps, so I took this opportunity to change the package name as well. We will be providing a migration guide with the official release (hopefully this week) and we recommend updating as soon as it is released. |
@dwieeb: Great! That's pretty much what I wanted to hear. 😄 |
@dwieeb So far this is looking very good, got it to work right off the bat, which doesn't always happen... How safe is using this tough? As safe as using Ionic2(beta) in general? |
Deploy and push working like a charm here! |
@dwieeb What about documentation ? Push doc does not talk about the new platform is is normal ? |
So far the library works great, I created a simple app with signup(), login(), logout() etc... But if you're looking for feedback/enhancements, I have one question/request. Question. How can I react or subscribe to authentication changes? I looked at the Request. Can the isAuthenticated() method be Observable or Rx Subject so we can subscribe to changes? It would make it much easier to update sections that depend on authentication like so. Hide logout button if user is NOT logged in. Subscribe to changes to login status Currently, I need to manually update my isLoggedIn BehaviorSubject on signup, login, logout. It would be great if I could just subscribe to the existing isAuthenticated status. Or maybe there's a better way to do it? |
Another question/request... Question. How can I import or require .io-config.json or ionic.config.json? I've tried several variations like the following but I can't convince Typescript/ES6 to import a JSON file.
Request. The library should automatically load the app_id from |
@cklanac It does fire on logout. The The core of the cloud client is essentially vanilla Typescript, so we'd need to wrap We decided on having the I don't think there's a standardize way of handling config in Angular 2, but when there is, we'd switch to it. Open to suggestions, of course. |
@clanac depending in what loader you are using, you might be able to use require to import the json. I've done that before
Another option could perhaps be to load the json using http, but that might happen to late during the startup for your needs. |
Thanks! As far as configs and loading json, it looks like they have a promising solution for importing non-ts files in the next release (microsoft/TypeScript#6615). In the meantime, I'm going to use require (which @Maistho just mentioned 👍 ) and is discussed TypeStrong/tsify#88, and TypeStrong/tsify#98 Define require so TS doesn't complain
Reference the definition, require the config and update cloud settings
The https://github.com/driftyco/ionic-cloud/wiki/Migration-Guide says you're dropping |
@cklanac Yup, |
@tamerbak Visit here to get details on push notifications using ionic-cloud-angular bro.. :) http://tphangout.com/ionic-2-push-notifications/ Good luck.. 👍 |
@rajayogan I'm gonna say right away that your post contains a lot of legacy code and practices that I'm confident won't work with the latest 0.0.14 release and will be out of date when our new documentation is released. |
@dwieeb okay.. I will pull the latest release and update the post accordingly. Thanks for the headsup bro.. 👍 |
Ok, I have deploy working, it was easy and works great. So, yay is my feedback :) I am trying to use the deploy.watch though, for the life of me I do not see how it works? |
@TrikinCurt yay! As for |
Any idea how to correct the issues below, or should I just ignore them? E:\nodejs\mystery>npm install --save @ionic/cloud npm WARN optional Skipping failed optional dependency /chokidar/fsevents: |
Since NPM3 peer dependencies aren't automaticlly installed to yes, you need to |
@MyWek @sagivf Those warnings shouldn't occur in an Ionic project, though, as all the peer dependencies should be already installed. I will fix our version requirements in |
Hi, Thanks for that. By any chance is there Deploy sample code for Ionic V2 Beta with Javascript? I'm trying to use the sample code on the migration guide, but am having trouble (3 frustrating hours to be exact) getting it to work: https://github.com/driftyco/ionic-cloud/wiki/Migration-Guide. I'm sort of wishing I didn't choose to use V2 Beta in my project at this point, it is very hard to find sample code. Everything is for older versions or typescript... Thanks for your help! |
@MyWek The Migration Guide isn't for migrating Ionic 1 to Ionic 2. It's for people who have |
I've been using deploy in an Ionic 2 TypeScript project for ~2 weeks and it's been working great so far. Just wanted to drop in and say so far so good! |
I used this ionic-cloud-angular for function "push notification" in ionic2 (using sample code ionic-conference-app), but found no push message to the device. Everything seems correct as I revised once again, does this integration work well at this time? |
@justinschuldt Thanks! Glad to hear. We're making some finishing touches next week and then we should be good to go pretty soon. @grabtasker We'll have official documentation out soon that should make this a bit easier to integrate into your app. |
I'm starting a brand new Ionic 2 project, with Angular 2 and Typescript. Should I use the ionic-platform-web-client, ionic-platform-web-client-angular, @ionic/cloud-angular, @ionic/cloud, or @ionic/platform-client in order to use the Ionic cloud/platform? |
@SteveKennedy for a brand new project you should use |
@Maistho. Thank you. Does @ionic/cloud-angular support Analytics? That's like the most important piece to me. |
@SteveKennedy Answered you on twitter, but I will answer again so others can see. Analytics will be coming after our initial release. We just need to rethink how we're doing it in the cloud client. |
Cant make a @ionic/cloud-angular work .. anyone has a project example? |
I'm asking for feedback on the Angular 2/Ionic 2 support in the Ionic Cloud client. Using this library is recommended for Ionic 2 projects, and will be the future of what once was the
ionic-platform-web-client
. For usage, see the readme for now. The exported classes from'@ionic/cloud-angular'
are the same asPush
,Auth
,User
, etc. from the old client, except that they hook into the Angular 2 dependency injection framework (so there's no need to instantiate them).The cloud client may differ from what you're used to in the
ionic-platform-web-client
. Although written as a migration guide for v1 apps, this may help.The text was updated successfully, but these errors were encountered: