相关疑难解决方法(0)

Android 深层链接不起作用

Android deep linking is not working
===================================
 Android link:-notification://id=notificationid
Run Code Online (Sandbox Code Playgroud)

1:-在清单中

      <intent-filter>
                    <action android:name="android.intent.action.MAIN" />

                    <category android:name="android.intent.category.LAUNCHER" />
                    <category android:name="android.intent.category.BROWSABLE" />

                    <data
                        android:host="id"
                        android:scheme="notification" />
                </intent-filter>       
Run Code Online (Sandbox Code Playgroud)

2:-和编码端

 @Override
        protected void onResume() {
            super.onResume();        
            Intent intent = getIntent();
            String string=intent.getAction();
            Uri data = intent.getData();
            Log.d("hello","cgbdsuyfdkv");
        }   
Run Code Online (Sandbox Code Playgroud)

但它不起作用请任何人都可以帮助我!!!!!

android

6
推荐指数
1
解决办法
2万
查看次数

标签 统计

android ×1