Issue Description:
We are trying to implement Custom URL Scheme on an Android App. Here is the complete activity flow:
Step 1: User downloads the app on the device
Step 2: User installs the app on the device
Step 3: User sign’s up for the xyz App from the sign up page.
Step 4: Once sign up/registration is completed, then web server sends an email to the user for activating the account
Step 5: User needs to open the activation email from the web browser or email app from an Android phone
Step 6: When the user clicks on the activation link in the email, the system should perform the following steps:
6.a User gets activated through the URL
6.b System verifies whether the request is coming from computer or mobile device (Java script code in browser is performing this check)
6.c If the user is using mobile device and device OS is Android then the activation process should open the installed app after activation
Implementation:
We defined custom URL Scheme in the manifest of the APP for Log In screen activity definition. Once url xyzURLScheme://xyz is invoked from the browser, it launches the login screen of the APP and bring the app on the forefront by putting the browser in back ground.
Here is the Manifest:
<activity
android:name=".XyzScreen"
android:screenOrientation="portrait"
android:theme="@android:style/[login to view URL]" >
<intent-filter>
<action android:name="[login to view URL]" />
<category android:name="[login to view URL]" />
</intent-filter>
</activity>
<activity
android:name=".LoginScreen"
android:screenOrientation="portrait"
android:theme="@android:style/[login to view URL]" >
<intent-filter>
<data
android:host="xyz"
android:scheme="xyzURLScheme" />
<action android:name="[login to view URL]" />
<category android:name="[login to view URL]"/>
<category android:name="[login to view URL]"/>
</intent-filter>
</activity>
Problem Statement
The above solution is working for Android OS version 2.x but not working for the OS version 4.x
The problem occurs if the user clicks on the activation link in the email app of Android 4.0 device. Upon activation, user is being redirected to the page and mobile browser returns error message ‘Web page can’t be found’
I have professional eperience of working 15 Years in developing applications using Java/JEE related and the latest technologies. Expert in Software Architecture/Design/Development/Testing/Deployment. My Professional Experience helps in delivering in-time with ut-most quality.
Thanks
Dear sir,
I am JAVA/Android developer. I read your project requirement and it can be completed within 1 month. I have 2 years experience in
JAVA/Android development. I have completed similar projects previously for my local clients. Looking forward for your positive response.
Thank you
Have a nice day