Everything you need to know to build apps with the MentraOS SDK
AppServer
and override the onSession
method. The sessionId parameter follows the format "userId-packageName"
(e.g., "user@example.com-com.example.app"
).onSession
method is called:
User starts app
Cloud sends webhook
Session created
onSession
handler is called with an AppSessionReal-time connection
Session ends