I have a problem with "name". This was working until I updated with SDK 4. Working with SDK 4.2.2 here's my code:
mSession = ActivityRecording.createSession(
{:name=>"Pickleball",
:sport=>ActivityRecording.SPORT_TENNIS});
The activity name used to be Pickleball now it is Tennis.
I also noticed the compiler says SPORT_TENNIS has been depreciated. There is no indication in the API documentation about this? I tried changing it to SPORT_GENERIC and the compiler again says the label is depreciated. However when I run it the name is Pickleball. Seems like a bug to me. When will this be fixed?