question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot login when app running in WORK profile

See original GitHub issue

I have install app in “Personal” and “Work” profile, and after I running app in Personal and logged and after I switch to Work profile tab and running app and go to login but I cannot login app. My app using one scheme as code below:

<activity android:name="net.openid.appauth.RedirectUriReceiverActivity"
            android:configChanges="keyboardHidden|orientation|screenSize"
            android:noHistory="true"
            android:launchMode="singleTask"
            android:exported="true">
            <intent-filter>
                <action android:name="android.intent.action.VIEW"/>
                <category android:name="android.intent.category.DEFAULT"/>
                <category android:name="android.intent.category.BROWSABLE"/>
                <data android:scheme="com.abc.test"/>
            </intent-filter>
        </activity>

Please help to find the solution for this, thank you so much.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
azmolekcommented, Sep 9, 2019

Your results may vary by phone and may depend on what browser is installed inside the work profile - saying you opened custom tabs doesn’t address the fundamental question of what has been set up because the work profile can have a different system browser. Look at what browser has an instance in the work profile (if any), and be prepared to deal with browsers that support custom tabs but might have bugs (early versions of Sbrowser from Samsung, for example) or a system browser that is not the same as what user 0 (the primary user) has set up. I can’t troubleshoot your code, I’m just suggesting you look carefully at any assumptions you are making about the work profile system browser.

–Andy

On Mon, Sep 9, 2019 at 5:04 AM pvtai notifications@github.com wrote:

what browser are you using in the work profile? IIRC Chrome isn’t installed by default so If you don’t have one installed or the one you do have doesn’t support custom tabs then you might not have a good experience … <#m_6499667482433462577_> On Fri, Sep 6, 2019 at 11:24 AM pvtai @.***> wrote: I have install app in “Personal” and “Work” profile, and after I running app in Personal and logged and after I switch to Work profile tab and running app and go to login but I cannot login app. My app using one scheme as code below: Please help to find the solution for this, thank you so much. — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#493 https://github.com/openid/AppAuth-Android/issues/493?email_source=notifications&email_token=ABE6QALM7RAVHRDJTCOGOULQIIVVTA5CNFSM4IUHOZ2KYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HJYUUUQ>, or mute the thread https://github.com/notifications/unsubscribe-auth/ABE6QAMAX6DULSFSMEZ5SHTQIIVVTANCNFSM4IUHOZ2A . – --Andy Zmolek andy@zmolek.com

In work profile, I have opened custom tabs to iput username and password, but I cannot login.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/openid/AppAuth-Android/issues/493?email_source=notifications&email_token=ABE6QAOMQIYI4GYJYGE6PXTQIXDLNA5CNFSM4IUHOZ2KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6GFRFI#issuecomment-529291413, or mute the thread https://github.com/notifications/unsubscribe-auth/ABE6QAIU3YGXDI4XBLAATT3QIXDLNANCNFSM4IUHOZ2A .

– –Andy Zmolek andy@zmolek.com

0reactions
agologancommented, Jun 7, 2021

Closing as the OP has resolved his issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Pause or turn on your work profile - Android Enterprise Help
When your work profile is paused, work apps won't run, generate notifications, or consume data and battery life. You also won't be able...
Read more >
Access images and other media in your Android work profile
Access images and other media in your Android work profile. If you use Microsoft mobile apps such as Microsoft Office, Outlook, or Teams...
Read more >
Unable to connect to the Wi-Fi when App is running under ...
Strange this is that when we tested this on a Samsung device running on Android 9 and in that it worked on both...
Read more >
Unable to use work profile account for Slack app login
You should install a browser (e.g. Chrome) from your work profile, i.e. install it using your work profile Google Play app. Once a...
Read more >
Your Personal Profile - When I Work Help Center
supervisors, managers, and admins cannot update... Change Your Privacy Preference ... Each user can turn their privacy settings on or off from the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found