breautek commented on issue #197: [Ionic] Cordova app is not connecting to the 
sockets api in release build.
URL: https://github.com/apache/cordova/issues/197#issuecomment-590319084
 
 
   > with the same code and everything works on api level 27 but on 28+ it does 
not... I dont think thats a ionic issue @brodybits
   
   Are you able to provide a sample reproduction app that contains exactly what 
is needed to reproduce the issue and nothing more? (pure cordova, no frameworks 
like ionic, angular, etc).
   
   The reason why Brody says we cannot support issues with Ionic is because 
frameworks can change the behaviour so it can be really hard to identify or 
reproduce issues, and by having frameworks or libraries, it opens up the 
possibility for the cause drastically. 
https://github.com/apache/cordova-contribute/blob/master/create-reproduction.md
   
   Alternatively, if you provide us with a full error message, we may be able 
to provide some more insight. `XHR Poll Error` is a generic error message from 
the socket library you are using. I don't know too much about socket.io, but I 
suspect there are probably other relevant information that we are missing here. 
(Perhaps check the network tab?)
   
   > everything works on api level 27 but on 28+ it does not
   
   This is just a guess, but one notable change between API 27 and API 28 is 
that network traffic by default **must** be secure (therefore they need to use 
`https` protocol and your server needs to have a valid SSL certificate).

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to