Send Windows Phone Push Notifications using WebJobs & nodejs - node.js

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.

Related

Push Notification using flutter

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/

Publish Windows service in Microsoft store with NodeJS or Electron

I'm looking for a the golden advice.
I've created an app that listens to websockets over a certain port and then sends commands to a native module (wrapped by NodeJS). now all this is done in NodeJS app. and packed in exe file (with two extra files for the native module ".dll and .napi")
now I want two things:
Run this app as a windows service in the background.
Package it in an installer that should stop the service (if exists), install the new update, then re-run the service. this app will be published in Microsoft store as appx.
I'm new to all of this so I feel lost while trying to know which is the best approach with my little knowledge.
I'm a bit confused between NodeJS and ElectronJS, some people say electron is not the best choice for services, but electron-builder is a great tool for packaging.
Conclusion: I want to publish my app to Microsoft store (already bought a developer account), and to run it as a service (no GUI). and the code is written in JS (node or electron)
Thanks in advance

Using Azure SDK for JS to create .NET 4.x App Service

I'm starting to wonder whether this is the right tool for the job, still here goes.
I'm attempting to automate the creation of our Azure Test environment using Azure SDK for JS. The environment spans many services (as you can imagine), including Classic ASP.NET app services.
Node is my safe space, so that is why I started with the JS SDK.
I have started scripting the creation of an app service using WebSiteManagementClient.webApps.createOrUpdate. I'm confused though, there is seemingly no way to configure any of the following:
Which app service plan the app service should be connected to. This feels fundamental.
The operating system, Windows or Linux.
The stack version, .NET 4.8, .NET Core, or whatever.
Is it possible to configure the above using the JS SDK, or am I going to have find another approach?
Update 23/03/21
Untested, but these are my findings so far:
App Service Plan - The plan is set using the serverFarmId property of the Site interface.
Operating system - Assuming Windows as the default, if you want a Linux app service, you change the kind property of Site from app, to app,linux.
Stack & version - In the SiteConfig interface, you have linuxFxVersion and windowsFxVersion. Again, I think the assumption is 'latest .NET' (e.g. .NET 4.8). For .NET Core 3.1, the setting looks to be DOTNETCORE|3.1.
It can be achieved using js SDK. I checked the source code and it is ok. But I don't recommend to use js sdk to do this.
Because you need to call the SDK, there are many internal logics that you need to code. This will waste a lot of your time. So I recommend you to use restapi.
The restapi method name is similar to the naming in the SDK, mainly because you can test api interfaces online to achieve the functions you want. So you can selectively choose the method you want to achieve the function you want.
Official doc
Web Apps - Create Or Update
As for your concerns, you only need to write all the configuration in json format and put it in the request body.
Tips:
First use the online interface, encode the json format, create a webapp according to your needs, and then integrate it into your code.

I need a NodeJs Open Source Server to Download and Run on Windows NodeJS Server

I have a question on NodeJs. I am developing a customer application that needs to send some SMS notifications to my clients. Now I am looking for an open source NodeJs SMS server that will allow my application to send SMSs to my customers. Please suggest any working open source SMS server that supports NodeJs. Please I have tried to search around I have heard of RapidSMS and Kannel while Kannel have a very long documentation which is hard to understand. I need one that supports NodeJs and works on windows server/ but it can be Linux if thats the case. Thanks in advance.
As long as you are using npm you should be able to use any of the following providers: (Does not matter whether you run it on Windows Server or Linux)
https://www.nexmo.com/
A free option to try out: https://www.codementor.io/nicks/send-a-tex-sms-using-node-js-a084719np

programmatically create users in firebase node

With the latest node SDK, I'm unable to programmatically create users as I had done with older versions of firebase. I need this in order to create a pre-populated database for testing purposes. The node SDK does not support createUserWithEmailAndPassword. Any idea how to programmatically create users or get the uids of users from the db or programmtically sign in as a user with the web client's signinWithEmailAndPassword?
Are you doing your testing with a live firebase instance? It might be better to use firebase-server to do this type of testing: https://firebase.googleblog.com/2015/04/end-to-end-testing-with-firebase-server_16.html
This should make your tests run faster and you won't be reliant on an internet connection.
Most of the client-side auth and user management methods (including creating users) are available in the Node.js environment since the 3.3.0 release of the Firebase JavaScript SDK. The SDK should now be mostly isomorphic, but see my message on another thread here for the full details. Full release notes for that release are here.

Resources