@samuele.panarotto wrote:
Hello to everyone, maybe this is a well-known behaviour, but I cannoy find a solution for my applcation.
I have an applicatio deployed on an Android device, this application send and receive from a webservice JSON packets.
Until the application run in browser (ionic serve), everything works fine, but when I run the app on the device (ionic run android) nothing seems to work. Only if I run the command "ionic run android -l -c" I'm able to test the app on the device.I see with Wireshark that the origin of POST is set to http:// when i run from browser or with the command "ionic run android -l .c", but when I run from the device, the origin is set to "file://" and the answer from the server is always "403 Forbidden".
Is there some relation?
Have you some solution which let me access my webservice from the device.
Another strange behaviour is that the webservice was on an ubuntu machine, I was able to access the webservice even from the device, when I move in Windows, the things going bad.
Thank you in advance.
Samuel
Posts: 2
Participants: 2