How to distinguish Shared Device & Personal Device

0

Hi,
I wonder what is the fastest/easiest way to find out if a Shared Device is accessing the skill or a Personal Device.
Thanks.

user
已提問 4 年前檢視次數 274 次
4 個答案
0

You could call from your skill the resolveRoom API https://docs.aws.amazon.com/a4b/latest/APIReference/API_ResolveRoom.html

When you get room name back, it will be a shared device. When no room is returned, the request is coming from a personal device.

AWS
已回答 4 年前
0

Thanks for the prompt feedback, milo@aws.

user
已回答 4 年前
0

When calling ResolveRoom for Personal Device, are we supposed to get a response but without any RoomArn? or we should get an Error? Because I am getting this:

"errorMessage": "An error occurred (ValidationException) when calling the ResolveRoom operation: User ID is invalid, for a different skill or does not currently have room information associated with it"

Just want to ensure that this is the expected behavior. Thanks.

user
已回答 4 年前
0

The error message is correct.

AWS
已回答 4 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南