1

Is there a way to determine if my Android watches are connected to an android phone or an iPhone?

We have a business case do differs between these two cases and use PKCE for android and DAG authorization flow for iPhones. I want to know when to apply each flow

1 Answer 1

1

You could use PhoneTypeHelper:

PhoneTypeHelper.getPhoneDeviceType(context) == PhoneTypeHelper.DEVICE_TYPE_IOS

More info in Details for detecting the type of paired phone.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.