Forum Xamarin.Android

URL scheme to open app using link in browser crashes

Hello friends,

I want to launch my application using link, I followed URL scheme tutorials which succesfully prompt me to open application but unforunately whenever I open its crashed even without entering into entry activity.

Here is my XML manifest file
This is my intent filtet to make app open from URL

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:installLocation="auto" android:versionCode="1" package="com.planopunkt.myplano" android:versionName="1.0">
    <application android:icon="@drawable/Icon" android:label="myplano">
        <activity android:icon="@drawable/Icon" android:label="myplano" android:name="com.planopunkt.myplano.android.MainActivity">
            <intent-filter>
                <data android:scheme="http" android:host="planoandroid" />
                <action android:name="android.intent.action.VIEW" />
                <category android:name="android.intent.category.DEFAULT" />
                <category android:name="android.intent.category.BROWSABLE" />
                <data android:pathPattern=".*" />
            </intent-filter>
        </activity>
        <receiver android:name="com.google.android.gms.gcm.GcmReceiver" android:exported="true" android:permission="com.google.android.c2dm.permission.SEND">
            <intent-filter>
                <action android:name="com.google.android.c2dm.intent.RECEIVE" />
                <action android:name="com.google.android.c2dm.intent.REGISTRATION" />
                <category android:name="com.planopunkt.myplano" />
            </intent-filter>
        </receiver>
    </application>
    <uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />
    <uses-permission android:name="android.permission.WAKE_LOCK" />
    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="com.planopunkt.myplano.permission.C2D_MESSAGE" />
    <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
    <permission android:name="com.planopunkt.myplano.permission.C2D_MESSAGE" android:protectionLevel="signature" />
    <uses-sdk android:minSdkVersion="15" android:targetSdkVersion="21" />
</manifest>

This is what I can see and whenever I launch app using link it crashed, I have no point to debug

This is my stacktrace

        0x25 in System.Diagnostics.Debugger.Mono_UnhandledException_internal    C#
0x1 in System.Diagnostics.Debugger.Mono_UnhandledException at /Users/builder/data/lanes/2512/d3008455/source/mono/mcs/class/corlib/System.Diagnostics/Debugger.cs:122,4 C#
0x6 in Android.Runtime.UncaughtExceptionHandler.UncaughtException at /Users/builder/data/lanes/2512/d3008455/source/monodroid/src/Mono.Android/src/Runtime/UncaughtExceptionHandler.cs:35,4 C#
0x1C in Java.Lang.Thread.IUncaughtExceptionHandlerInvoker.n_UncaughtException_Ljava_lang_Thread_Ljava_lang_Throwable_ at /Users/builder/data/lanes/2512/d3008455/source/monodroid/src/Mono.Android/platforms/android-21/src/generated/Java.Lang.Thread.cs:221,5 C#
0x1D in object.64cdfcea-a815-480c-aedd-892ceada8c2f C#

I already wasted 1 day on this, please help me out save my another day. Thanks

Sign In or Register to comment.