I want to ask about the best way for push notification by using flutter and node.js API I used some of libraries but this libraries when I forced turn off app the notification does not receive and sometimes even app work the notification does not receive directly and I do not use firebase so I want the best ways to make the notification received directly when I push notifications even the app is closed or forced closed and it will be good if you have tutorial about that
One Signal is good for push notification within your needs. Here's some links:
Flutter setup: https://documentation.onesignal.com/docs/flutter-sdk-setup
API documentation: https://documentation.onesignal.com/docs/onesignal-api
You follow this.This is using Firebase Cloud Messaging.
Setup Link : https://firebase.flutter.dev/docs/messaging/overview/
Is that possible to use NodeJs server-side codes in react native,ionic,cordova or native script for mobile applications?
Question update:
I want to use NodeJs package and include NodeJs package into mobile application (native script , ionic , cordova or react native). for example include instagram-private-api into native script : NodeJs Private instagram API
{N} !== Browser / NodeJS.
It's a pure JS runtime, any apis specific to these platforms won't work within {N}. Though nativescript-nodeify plugin on-boards very limited NodeJS apis by translating them to their native equivalents.
I've been using many node.js APIs (including google/baidu/bing/wikipedia) inside my cordova App, here's what I did:
Install node.js / express / socket.io in your linux server.
Use socket.io inside your Cordova app to create 'many clients to one server' connections between your app and the node.js/socket.io server. In https://socket.io there is a simple example teaching you how to do that.
In Cordova App, use something like socket.emit('FromClientToServerCallAPI', data) to call an api.
In node.js server, define a function:
socket.on('FromClientToServerCallAPI', data)
and inside this function, call your api, and after you got the result from the api provider, run:
socket.emit('FromServerToClientAPIResult', result)
In your Cordova App, define a function:
socket.on('FromServerToClientAPIResult', result)
then do somthing with 'result'
pls. note that all the functions above are async.
Never try to call the api directly in your client codes, Some api provider requires you to apply for the api service and give you a 'key' to use the api, you don't want to put this 'key' inside your javacript and disclose it to all your users of the App, right?
Yes, it is possible with nodejs-mobile. It lets you run a full-blown Node.js engine inside a mobile application. It works on Android and iOS. There are other solutions that work on Android but as far as I know nodejs-mobile is currently the only one that also supports iOS. It also comes with plugins for React Native and Cordova.
More information, including documentation, is available on the project website.
(Full disclosure: I work for the company that develops nodejs-mobile.)
I just got the "Creators Update" on winodws 10.
I've read a while back that Cortana speech apis will become available for developers trough an SDK in this update.
Given that the node.js run-time is not sandboxed like the browser - is there a way to get the native windows apis like Cortana working in node.js? and by extension in electron.. using something like
var cortana = require ('cortana');
I couldn't find any npm package at this point. But i can't tell if is because it's too soon - or because there is some incompatibility here.
Can someone provide an explanation of what is actually happening?
Sure there are ways to make APIs like Cortana works with your app, for example botbuilder is an excellent npm package you can use:
https://github.com/Microsoft/BotBuilder-Samples
I am using sails js with mongodb.I need to implement push notification for android and ios. how can i implement it. I searched lot of things in internet regarding push notifications in sails js but i didn't find any useful resources for implementing push notifications in sails js. I tried node-push server but didn't get how to configure node-pushserver in sails js so can anyone please help me with this.
Got an answer for my above question on git hub by Maxime Robert.
Here i am pasting the answer just because it might be useful for others who are facing the similar problem.
Hi,
node-pushserver is NOT in sails.js and shouldn't be hard-linked to any other
development.
It is meant to be used as a standalone application requiring node.js and
mongodb as dependencies.
Your application should only interact with node-pushserver via its REST API.
I am currently using nodejs and a scheduled webjob to query a website and save some data to a json file for further consumption in a native Windows Phone app.
Now I'd like to add a feature where I can notify the users if new data was found on the website using push notifications.
Unfortunately I have not found any info on how one might do this or if that is even possible atm.
The https://github.com/tjanczuk/wns Node.js module serves this exact purpose.