Issue
I see Domain=NSURLErrorDomain Code=-1000
or similar errors with different codes in iOS logs or some sentry monitoring.
Troubleshooting
Basically, this error isn't directly connected with our iOS SDK.
These type of errors relate to the iOS operating system itself. They're return if there are various connection issues (e.g., a restricted VPN, proxies, traffic shaping, regional-wide blocking, and so on). It could also be some kind of failure of iOS itself on affected devices. There is no way for the SDK to influence iOS if it just not allows a connection due to some internal issues or external restrictions.
So, such errors are not directly related to the correct operation of the SDK.
Our SDK has its own debug logs, and you can see if anything goes wrong there. See the example below:
Dec 27 11:38:28 PushOn(Pushwoosh)[2482] <Notice>: [PW] [I] -[PWRequestManager]
x
| Pushwoosh request:
| Url: https://XXXXX-XXXXX.api.pushwoosh.com/json/1.3/registerDevice
| Payload: {"request":{"scheduled_summary":false,"push_token":"bc3dfeb3b5cda36daab83dwegwgdbcec2ec0027f305d897d8ae41xxxxxx","gateway":"production","notificationTypes":0,"app_version":"1.18.3","application":"XXXXX-XXXXX","sounds":["bubble.wav"],"device_type":1,"userId":"XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXXX","language":"en","hwid":"XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXXX","time_sensitive_notifications":false,"timezone":"0","package":"com.pushwoosh.pushon","os_version":"17.0.3","v":"6.5.5","device_model":"iPhone12,1"}}
| Status: "200 no error"
| Response: {"status_code":200,"status_message":"OK","response":{"iosCategories":[]}}
x
This means that the SDK successfully registered the token and sent it to our backend.
We recommend you ensure that the affected device is successfully connected to the network without any restrictions, or try connecting the device to a different network (at different location, with different type).
Also make sure that the system itself is working correctly. You can try rebooting your device, updating it to the latest available iOS version.
If you see in the logs exactly issues in the response of requests from our SDK, then contact our support team: help@pushwoosh.com
See also:
- iOS SDK docs: Controlling log level
Comments
0 comments
Please sign in to leave a comment.