Hello,
I have an application that uses geofences to alert users when they enter a certain place.
These geofences are added when you start the application, there is another service that runs when the phone is restarted to add the geofences.
When the user enters the geofence there is an alert with a PUSH (NB6), there are two ways to send the PUSH message.
1. Through a WEB Service you get the custom message from the Internet.
2. When the user does not have internet, the app will send a generic message, it is determined whether or not the user is connected to the internet by making a request through an HTTPJOB to a web service that returns "connected".
Geofence_Enter events are within Starter Service.
The problem is the following, I have performed tests with my phone which always has an Internet connection, and many times the phone throws the generic message, checking the logs that I save in a log file inside the phone I see that the HTTP request to the web service Internet connection fails.
Is there any cause that the starter service and the Geofence_Enter event when loading do not have access to the Internet? Or what could be the reason that when the request is made to the Web Service it fails ???
You can guide me in some way how to solve this
Thanks.
I have an application that uses geofences to alert users when they enter a certain place.
These geofences are added when you start the application, there is another service that runs when the phone is restarted to add the geofences.
When the user enters the geofence there is an alert with a PUSH (NB6), there are two ways to send the PUSH message.
1. Through a WEB Service you get the custom message from the Internet.
2. When the user does not have internet, the app will send a generic message, it is determined whether or not the user is connected to the internet by making a request through an HTTPJOB to a web service that returns "connected".
Geofence_Enter events are within Starter Service.
The problem is the following, I have performed tests with my phone which always has an Internet connection, and many times the phone throws the generic message, checking the logs that I save in a log file inside the phone I see that the HTTP request to the web service Internet connection fails.
Is there any cause that the starter service and the Geofence_Enter event when loading do not have access to the Internet? Or what could be the reason that when the request is made to the Web Service it fails ???
You can guide me in some way how to solve this
Thanks.