B4J Question JRDC2 IOS notifications stop to work after some time

marcick

Well-Known Member
Licensed User
Longtime User
Never had troubles in two years with IOS notifications, but actually I'm experiencing some wrong behaviours.
Looks like after some hours or days (typically I realize it in the morning) the notifications are sent to Apple server from my JRDC2 app ( I have a log that keep track of this ) but they does not arrive to destination. Easy to check this sending a single notificatios with web command. I see "message sent" in the browser but nothing arrive.
The solution is always to restart JRDC2 app.
Anybody else is experiencing this too ?
I still have to check if Android notification have the same problem or not.
 

marcick

Well-Known Member
Licensed User
Longtime User
Again I put the question in the wrong way.
Yes, I have a JRDC2 app where I have included B4X push server code to send notification throught Apple, not Firebase.
It happens that notifications look as sent but don't arrive to destination. When I'm in this situation, If I restart my JRDC2 app (let's say B4X push server) then new notifications arrive to destination.
 
Upvote 0

marcick

Well-Known Member
Licensed User
Longtime User
I grabbed this situation:

1) Iphone on the desk, screen off.
2) I send a notification through web.
3) Iphone screen switch on, but no sound and no notification.
4) After a few seconds the screen come back off.

Looking to the server log at that time I see a 404 (real IP masked)

B4X:
151.21.85.230 - - [03/May/2017:13:10:52 +0000] "GET //00.00.00.164:17170/sendsingle?id=FFFF-E8DD-413E-909D-73B6AA18D12A&password=xxxxxH&&devicetype=1&title=Notifica%20personalizzata&text=ciao,%20come%20stai%20? HTTP/1.1" 200 51 "-" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.81 Safari/537.36"
151.21.85.230 - - [03/May/2017:13:10:53 +0000] "GET //00.00.00.164:17170/favicon.ico HTTP/1.1" 404 326 "http://00.00.00.164:17170/sendsingle?id=FFFF-E8DD-413E-909D-73B6AA18D12A&password=xxxxxH&&devicetype=1&title=Notifica%20personalizzata&text=ciao,%20come%20stai%20?" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.81 Safari/537.36"
 
Upvote 0

marcick

Well-Known Member
Licensed User
Longtime User
Do you mean this ?

B4X:
srvr.Initialize("srvr")
    srvr.LogsFileFolder=File.DirApp
    srvr.LogsRetainDays=1
    srvr.Port = rdcConnector1.serverPort
    srvr.AddHandler("/test", "TestHandler", False)
    srvr.AddHandler("/devicetoken", "DeviceToken", False)
    srvr.AddHandler("/sendsingle", "SendSingle", False)
    srvr.Start

If yes, look at post #7
If not, please explain ....
 
Upvote 0

marcick

Well-Known Member
Licensed User
Longtime User
Ok Erel, did it, thanks, let's see what happens.
Once the log is programatically redirected to a file it isn't possible to see it also in realtime in the console, right ?
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
yes
 
Upvote 0
Top