codernoel@gmail.com
Has anyone gotten this to work properly? I keep getting errors surrounding the socket.io-client namespace not being found via TS, even though it's in Node. Contacted developer, waiting to hear back.
Yoram Kornatzky
Being the developer, I was not able to reproduce the error. I should say that sockets are needed only for real-time update on changes in the model from the server-side to the app.
Ilkka Nisula
Did you install typings for dependencies described in instructions? You need to install typings cli and then use it to install typings. npm install -g typings typings install ionic serve
Jose
Hi Thank you very much for your app in ionic2. I installed and it's working fine. I have some questions: -How are you controlling the sessions? I mean If you want to use login page as first page and not allow the user to enter in other pages without login. - How do you redirect the user after login? - How do you control the role that has the user? - Is it possible to store in the user information from where is the user signinup? (from google, facebook...) Thanks for your comments !
Yoram Kornatzky
1. Authorization of pages is something you should do with Angular Router https://angular.io/docs/ts/latest/api/router/index/Router-class.html 2. Redirection after login: use NavController import { NavController } from 'ionic-angular'; constructor(private nav: NavController, public backandService:BackandService) this.nav.push(CrudPage); 3. You select the user role in the Backand GUI > Security and Auth > Registered Users 4. Storing where the user came from: will answer soon
Yoram Kornatzky
4. To store where the user came from, following these steps: Read social provider: 1. add 'provider' field to users object 2. Open Security Actions, and Edit beforeSocialSignup 3. Add line of code: userInput.provider = parameters.socialProfile.Provider; 4. Change the Where Condition (at the bottom) to true
Jose
Hi Yoram, Thank so much for your answers! I will have a look!