Hi,
I try getting a B4X push server to push messages to my iPhone. Everything seems ok (certficates, B4J push server and b4i ios app), but I'm not receiving any notifications on my device.
I'm using
- a B4i-bridge release app
- the sandbox gateway API
Application_PushToken is beign called an I receive a token.
But Application_RemoteNotification is never called.
I allowed the application to receive notifications when I first ran it.
When sending a message the B4J server reports:
Should the B4J Push server run on an internet address ? It's currently running on my local 192.168.1.x subnet and not accessible from the internet.
I looked at https://www.b4x.com/android/forum/threads/push-notifications.48562/#content where Alberto seemed to have the same problem.
Thanks !
I try getting a B4X push server to push messages to my iPhone. Everything seems ok (certficates, B4J push server and b4i ios app), but I'm not receiving any notifications on my device.
I'm using
- a B4i-bridge release app
- the sandbox gateway API
Application_PushToken is beign called an I receive a token.
But Application_RemoteNotification is never called.
I allowed the application to receive notifications when I first ran it.
When sending a message the B4J server reports:
B4X:
Waiting for debugger to connect...
Program started.
2020-05-23 23:58:49.906:INFO::main: Logging initialized @682ms to org.eclipse.jetty.util.log.StdErrLog
port: 51044
2020-05-23 23:58:50.042:INFO:oejs.Server:main: jetty-9.4.z-SNAPSHOT; built: 2018-05-03T15:56:21.710Z; git: daa59876e6f384329b122929e70a80934569428c; jvm 1.8.0_251-b08
2020-05-23 23:58:50.077:INFO:oejs.session:main: DefaultSessionIdManager workerName=node0
2020-05-23 23:58:50.077:INFO:oejs.session:main: No SessionScavenger set, using defaults
2020-05-23 23:58:50.079:INFO:oejs.session:main: node0 Scavenging every 660000ms
2020-05-23 23:58:50.084:INFO:oejsh.ContextHandler:main: Started o.e.j.s.ServletContextHandler@13deb50e{/,file:///C:/projects/b4j-serverscript/iosApp/server/Objects/www,AVAILABLE}
2020-05-23 23:58:50.087:INFO:oejs.AbstractNCSARequestLog:main: Opened C:\projects\b4j-serverscript\iosApp\server\Objects\logs\b4j-2020_05_23.request.log
2020-05-23 23:58:50.270:INFO:oejs.AbstractConnector:main: Started ServerConnector@25bbe1b6{HTTP/1.1,[http/1.1]}{0.0.0.0:51044}
2020-05-23 23:58:50.271:INFO:oejs.Server:main: Started @1048ms
Emulated network latency: 100ms
server version: 0.97
server is listening on port: 51044
Table: tokens
Feedback Socket connected.
feedback terminated
Socket connected.
send message to
status=8
terminated
Trying to reconnect...
Socket connected.
Should the B4J Push server run on an internet address ? It's currently running on my local 192.168.1.x subnet and not accessible from the internet.
I looked at https://www.b4x.com/android/forum/threads/push-notifications.48562/#content where Alberto seemed to have the same problem.
Thanks !
Last edited: