1.) I am looking for an ionic 2 version , can this be done with the cordova-plugin-local-notifications or is this built in like camera , scheduler etc.
2.) The notifications should be available even when the app is not running i.e. I need the app to run as a service (Noob question since I am new to app development space)
For example, applications that depend on servers for messages or data can poll their servers for incoming items while running in the background
Here they talk about polling, the worst way of sync with the server since it consumes wifi or in the worst case the cellphones data connection (i mean the money they put into their cellphone to make calls, send messages or navigate through internet without wifi), what about web sockets? can they be used with this plugin? i don’t see any mention of this in both the forum article nor the plugin’s github page.
Sorry @jagsingh I pasted the wrong link. There was an Ionic 2 discussion about it somewhere. I can’t find it now - I will paste a link if I can find it.
I’m using LocalNotifications, but I’m getting this error when trying to schedule multiple
TypeScript error: /Users/joshua.richards/projects/Symbicort30/app/pages/walkthrough/walkthrough.ts(196,32): Error TS2345: Argument of type '{ id: number; title: string; text: string; }[]' is not assignable to parameter of type 'Notification'.
Types of property 'every' are incompatible.
Type '(callbackfn: (value: { id: number; title: string; text: string; }, index: number, array: { id: nu...' is not assignable to type 'string'.
did you found a solution for running in background and web sockets, wee need the same thing. We have a server with websockets and there should be a background process which is listing to it and give a local notification.
Can you give us some help or experiences?