These docs are for v1.0. Click to read the latest docs for v2.0.

Release Note

VersionDateHistory
1.0.9(10009)2023.9.22AsleepSDK.aar
- Within the range from startSleepTracking() to stopSleepTracking(), if a network error occurs, it used to return the common error code ERR_NETWORK(11500). Now, I have added different error codes, ERR_CREATE_FAILED(22500) and ERR_CLOSE_FAILED(24500) for distinguishing purposes.
- For functions like initAsleepConfig(), getReport(), getReports(), deleteReport(), and deleteUser(), if a network error occurs, it will now return ERR_NETWORK(11500).
1.0.8(10008)2023.8.29AsleepSDK.aar
- Modified internal logic
1.0.7(10007)2023.8.17AsleepSDK.aar
- Changed 'estimatedAh' to 'estimatedAhi' in response of Report
1.0.6(10006)2023.8.9AsleepSDK.aar
- If the session status is OPEN, remove callbackUrl of closeSession
1.0.5(10005)2023.8.7AsleepSDK.aar
- If the session status is OPEN, add callbackUrl of closeSession
1.0.4(10004)2023.8.2AsleepSDK.aar
- Fixed bug that onFail() was continuously called when a network error occurred in data upload after startTracking()
- Added exception handling (errorCode: ERR_INVALID_URL) about baseUrl
1.0.3(10003)2023.8.1AsleepSDK.aar
- Fixed bug that userId was not deleted when deleteUser
- Added errorCode 11404 when requesting a deleted userId
1.0.2(10002)2023.7.24AsleepSDK.aar
- getReports() response change from existing List<Report> to List<SleepSession>
1.0.1(10001)2023.7.18AsleepSDK.aar
- Fixed bug in stopSleepTracking()
- Changed default 'limit' of getReports() to 20
1.0.0(10000)2023.7.3Initial Release AsleepSDK.aar

❗️If it does not work normally after replacing the aar file, run 'Invalidate Caches' in Android Studio.