Welcome! Log In Create A New Profile

Advanced

[WM24] PUSH Notifications

Posted by RobertLeo 
[WM24] PUSH Notifications
January 03, 2020 09:50AM
Hello guys, I am trying to make my application able to receive PUSH notifications and in order to do that I followed the instructions provided in the windev website, I signed and registered my app to firebase, added the json file, and input the code, but beyond that I am uncertain, do we really need an application server in order to send out notifications? And do we really need webdev on top of it as well?
Re: [WM24] PUSH Notifications
January 03, 2020 10:08AM
There is an example called "WD Send Push" and afaik it's a Windows application which does exactly what you want.
It uses the NotifPushSend() function and that's the one you need.

Arie
Re: [WM24] PUSH Notifications
January 03, 2020 10:37AM
Hello ArieM,

Thank you for the response, does this mean that if let's say that I have a computer set up to "text blast" these PUSH messages to all users of the device I should just use this example and that's pretty much it?

ArieM Wrote:
-------------------------------------------------------
> There is an example called "WD Send Push" and
> afaik it's a Windows application which does
> exactly what you want.
> It uses the NotifPushSend() function and that's
> the one you need.
Re: [WM24] PUSH Notifications
January 03, 2020 01:05PM
Well your app get's a token from either Apple or Google when registering for notifications (NotifPushEnable()) and NotifPushSend() uses (requires!) these tokens.

So you also need some mechanism to get the token from every device on the server side. There are several ways to do so:

1.webservice (you mentioned that one I guess??)
You don't need Webdev to build the webservice, you can do that with Windev as well.
But you do need a webserver (IIS or Apache) to run the webservice.

2. FTP
Then you need to run a FTP-server somewhere

3. Directly into a client-server database like HFSQL OR MSSQL
Means it is available from the outside on port 4900 or 1433 or some other port - would not be my choice

4.socket application
Basicly creating your own receiving service instead of the ones mentioned above

Arie
Re: [WM24] PUSH Notifications
January 03, 2020 01:11PM
I don't have windev (just windev mobile and webdev), so I guess number 1 is out of the question, and I am not well versed enough to create a receiving service so I am not too sure on number 4, as for 2 and 3, would there be any tutorial on how to create it?

ArieM Wrote:
-------------------------------------------------------
> Well your app get's a token from either Apple or
> Google when registering for notifications
> (NotifPushEnable()) and NotifPushSend() uses
> (requires!) these tokens.
>
> So you also need some mechanism to get the token
> from every device on the server side. There are
> several ways to do so:
>
> 1.webservice (you mentioned that one I guess??)
> You don't need Webdev to build the webservice, you
> can do that with Windev as well.
> But you do need a webserver (IIS or Apache) to run
> the webservice.
>
> 2. FTP
> Then you need to run a FTP-server somewhere
>
> 3. Directly into a client-server database like
> HFSQL OR MSSQL
> Means it is available from the outside on port
> 4900 or 1433 or some other port - would not be my
> choice
>
> 4.socket application
> Basicly creating your own receiving service
> instead of the ones mentioned above
Re: [WM24] PUSH Notifications
January 03, 2020 02:28PM
You can also use webdev to create webservices.

I'm afraid there is no easy way to get it up and running. You need a server 'somewhere'. Open port on router/firewall to be accessible from the outside. Need a fixed IP or URL. etc. etc.

What kind of app are we talking about btw?
if it's a dedicated app for a few known users, you can also send an email from your app using EmailRunApp() to get the tokens. Requires some userinteraction, because the mail-app will be started. All fields can be pre-filled, like your emailaddress and the token-string, but the user has to press [Send]

Arie
Re: [WM24] PUSH Notifications
January 03, 2020 02:30PM
I have a cloud server with public IP and configurable ports ready, does that count? But it is running on Linux so I am not certain if that'll work or not

I am developing a healthcare app for a large amount of users unfortunately...

ArieM Wrote:
-------------------------------------------------------
> You can also use webdev to create webservices.
>
> I'm afraid there is no easy way to get it up and
> running. You need a server 'somewhere'. Open port
> on router/firewall to be accessible from the
> outside. Need a fixed IP or URL. etc. etc.
>
> What kind of app are we talking about btw?
> if it's a dedicated app for a few known users, you
> can also send an email from your app using
> EmailRunApp() to get the tokens. Requires some
> userinteraction, because the mail-app will be
> started. All fields can be pre-filled, like your
> emailaddress and the token-string, but the user
> has to press [Send]



Edited 1 time(s). Last edit at 01/03/2020 03:50PM by RobertLeo.
Re: [WM24] PUSH Notifications
January 03, 2020 04:37PM
Another question, I read somewhere that we can use firebase itself to do PUSH notifications as well? Albeit having to constantly write the notifications manually
stefan.kern
Re: [WM24] PUSH Notifications
January 03, 2020 05:00PM
Hi Leo,

I developed a kind of "universal" push server.
This server has a webservice, which can be consumed by any application who wants to generate a message.
You have to pass an application ID and a user ID to this webservice, The server is generating the push message and sending the message to all devices with the application ID and user ID.
The app itself also needs to register to the push server, telling the server it's application ID and user ID,

The server is running on a webserver with static IP, all the connections are secured with SSL and everything is fine according to the european
eu data protection basic regulation

If you are interested, you could use this service for a small amount.

Regards

Stefan.
Re: [WM24] PUSH Notifications
January 03, 2020 06:05PM
I'm afraid I don't know anything about Linux, but it is fully supported by the Webdev.

Arie
Re: [WM24] PUSH Notifications
January 03, 2020 07:15PM
RobertLeo Wrote:
-------------------------------------------------------
> Another question, I read somewhere that we can use
> firebase itself to do PUSH notifications as well?
> Albeit having to constantly write the
> notifications manually

You can do that indeed using the firebase cloud console if you have a notification just every now and then

Arie
Re: [WM24] PUSH Notifications
January 04, 2020 02:28PM
well we do plan on pushing out manually created notifications from a control center so I guess I should check it out

ArieM Wrote:
-------------------------------------------------------
> RobertLeo Wrote:
> -------------------------------------------------------
> > Another question, I read somewhere that we can
> use
> > firebase itself to do PUSH notifications as
> well?
> > Albeit having to constantly write the
> > notifications manually
>
> You can do that indeed using the firebase cloud
> console if you have a notification just every now
> and then
Re: [WM24] PUSH Notifications
January 04, 2020 02:29PM
Hello Kern,

Thank you for the offer, but unfortunately I am unsure if it will be possible to pay you as I do not have any way of paying out of my country

stefan.kern Wrote:
-------------------------------------------------------
> Hi Leo,
>
> I developed a kind of "universal" push server.
> This server has a webservice, which can be
> consumed by any application who wants to generate
> a message.
> You have to pass an application ID and a user ID
> to this webservice, The server is generating the
> push message and sending the message to all
> devices with the application ID and user ID.
> The app itself also needs to register to the push
> server, telling the server it's application ID and
> user ID,
>
> The server is running on a webserver with static
> IP, all the connections are secured with SSL and
> everything is fine according to the european
> eu data protection basic regulation
>
> If you are interested, you could use this service
> for a small amount.
>
> Regards
>
> Stefan.
Author:

Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: