Not able to login using Android 7.1.1 with Honeywell CT60 Device
ikalebhagyashri opened this issue · comments
Capacitor version:
"@capacitor/cli": "2.0.0",
Run npx cap doctor
:
Library version:
- 2.1.0
OAuth Provider:
Your Plugin Configuration
export const oauthLoginApi = {
authorizationBaseUrl: "https://accounts.google.com/o/oauth2/auth",
accessTokenEndpoint: "https://www.googleapis.com/oauth2/v4/token",
scope: "openid profile email",
setPrompt: "login",
web: {
appId: process.env.REACT_APP_WEB_API_KEY,
responseType: "code id_token token", // implicit flow
accessTokenEndpoint: "", // clear the tokenEndpoint as we know that implicit flow gets the accessToken from the authorizationRequest
redirectUrl: "http://localhost:8100",
windowOptions: "height=600,left=0,top=0",
setPrompt: "login",
},
android: {
appId: process.env.REACT_APP_ANDROID_CLIENT_KEY,
responseType: "code", // if you configured a android app in google dev console the value must be "code"
setPrompt: "login",
redirectUrl: "com.abc.xyz:/" // package name from google dev console
}
}
Affected Platform(s):
- Android
- Version/API Level: Android 7.1.1
- Device Model: Honeywell CT60
- Content of your
AndroidManifest.xml
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|smallestScreenSize|screenLayout|uiMode"
android:name="com.abc.xyz.MainActivity"
android:label="@string/title_activity_main"
android:theme="@style/AppTheme.NoActionBarLaunch"
android:launchMode="singleTask">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<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="@string/custom_url_scheme" android:host="oauth" />
</intent-filter>
<intent-filter android:label="@string/app_name" >
<action android:name="android.intent.action.VIEW" />
<data
android:host="accounts.google.com"
android:pathPrefix="/Logout?continue=intent"
android:scheme="https" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
</intent-filter>
</activity>
<provider
android:name="androidx.core.content.FileProvider"
android:authorities="${applicationId}.fileprovider"
android:exported="false"
android:grantUriPermissions="true">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/file_paths"></meta-data>
</provider>
</application>
<!-- Permissions -->
<uses-permission android:name="android.permission.INTERNET" />
<!-- Camera, Photos, input file -->
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<!-- Geolocation API -->
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-feature android:name="android.hardware.location.gps" />
<!-- Network API -->
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<!-- Navigator.getUserMedia -->
<!-- Video -->
<uses-permission android:name="android.permission.CAMERA" />
<!-- Audio -->
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS"/>
### Current Behavior
<!-- Describe the bug. Be specific. I need to understand you problem. -->
When user is trying to login from honeywell CT60 device with Android 7.1.1 sometimes it redirects to google search page and sometime user able to logged in. If user leaves app idle for some time then he/she needs to logout first for login.
### Expected Behavior
<!-- Describe what the behavior would be without the bug. -->
User should able to login without redirecting to search page
### Sample Code or Sample Application Repo
<!-- If you are able to illustrate the bug or feature request with an example, please provide sample code snippets or a sample application via a public repo. -->
### Reproduction Steps
<!-- Please explain the steps required to duplicate the issue, especially if you are able to provide a sample application. -->
1.Log in into application
2.Entered Mail Id
3.Enter password
4.After clicking on next button it redirects to search engine sometimes
### Other Information
<!-- List any other information that is relevant to your issue. Stack traces, related issues, suggestions on how to fix, Stack Overflow links, forum links, etc. -->