Open madawas opened 6 years ago
This issue has been automatically marked as stale because it has not had recent activity.
We're facing the same issue - do we have a resolution for this? on IoT 3.3.0
Is there an update on this? This is a major blocker; IoT 3.3.0 wont work for iOS unless this issue is resolved.
@scmfz even though this exception is thrown, the iOS enrollment should work properly. This issue comes only when the server tries to push initial operations before the device enrollment is finished. If a device gets enrolled successfully the operations should work without an issue.
@madawas For us the profile installation fails - however the device does show up in the wso2 device management section - but the profile installer fails.
It passes enrolling certificate, then the status switches to installing profile and it then gives us an error Profile failed to install - and at the same time the exception shows up.
@scmfz That could be related to a different issue. Please open a new issue and mention the following information if possible.
@madawas The exception is identical to this - but if you feel it should be a separate issue, I'll open a different one.
@scmfz This exception throws because the server cannot push the operations to the device as the device is not properly installed. So my guess is this exception is not related to the issue you are facing. Also, we have seen that this exception throws even when the enrollment is successful.
By the device log, do you mean the log on WSO2 or the iOS device's own log?
I mean the iOS device's own log. We might be able to get the correct reason for the "Profile Installation Failed" message from there.
Also please revisit all the iOS related configurations and double check if they are correct. Since there are tricky configuration parts there is a higher possibility of misconfigurations.
@madawas Thank you for the information - we're going to do some debugging to find out what the cause is, if we dont find any issue on our end, I'll create a new issue.
@scmfz it is the expected behaviour. The device will be added to the database once the correct login details are provided. Then the server provides the profile to the device. For some reason, the profile installation has been failed on your device. IMO the easiest way to identify the reason is inspecting the device logs. Please provide us if you can find any input from the device logs.
This issue has been automatically marked as stale because it has not had recent activity.
Description: Following exception occurs when enrolling an iOS device to the system. The reason for the exception is when a device is enrolled, the server tries to push initial operations to the device. But in the case of iOS in order to send a push notification, DEVICE_TOKEN and MAGIC_TOKEN should be available in the system which will be available only after the profile is installed in the device successfully.
Affected Product Version: wso2iot-3.2.0, ios-3.2.2
OS, DB, other environment details and versions:
Ubuntu 14.04, MySQL 5.6, JDK 1.8.0_144