Acknowledged

crash on some devices accessing user profiler

Unhandled Exception:
GPSMAP® 67 / 67i: 4.80
Montana® 7 Series: 16.50

var s = USP.getProfile();

var WakeTime = s.wakeTime == null ? null : s.wakeTime.value() / 60;// crash

so probably s = null but doc doesn't mention about null or about any limitation to devices

getProfile() as UserProfile.Profile

Retrieve the current UserProfile.Profile object.

Example:

using Toybox.UserProfile;
var profile = UserProfile.getProfile();

Returns:

Since:

API Level 1.0.0

Parents Comment Children
No Data