Via browser window authentication does not redirect to locally compiled Moodle App

Re: Via browser window authentication does not redirect to locally compiled Moodle App

by Vinod Singh -
Number of replies: 4
I figured out that following intent-filters are missing from AndroidManifest.xml file while building locally with "ionic cordova" even though cordova-plugin-customurlscheme is configured in build.xml.

            <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="moodlemobile" />
            </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=" "
                    android:host=" "
                    android:pathPrefix="/" />
            </intent-filter>

After adding intent-filters to AndroidManifest.xml made it work. Though this is not an ideal solution.

In reply to Vinod Singh

Re: Via browser window authentication does not redirect to locally compiled Moodle App

by We Blend Web -
I also have the same issue.
What is the ideal solution for this issue?
In reply to We Blend Web

Re: Via browser window authentication does not redirect to locally compiled Moodle App

by Vinod Singh -
Ideally build process should add these intents in AndroidManifest.xml file.
In reply to Vinod Singh

Re: Via browser window authentication does not redirect to locally compiled Moodle App

by We Blend Web -
Sometimes it works and sometimes does not. While logging in with Google most of the times it shows a blank screen and does not redirect to the app.
Any solution please?
Average of ratings: Useful (1)
In reply to We Blend Web

Re: Via browser window authentication does not redirect to locally compiled Moodle App

by Govind Soni -
Did you find any solution for the same ? Thanks in advance.