Android deep linking is not working
===================================
Android link:-notification://id=notificationid
1: - 在清单Android的深层链接无法正常工作
<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>
2: - 和编码侧
@Override
protected void onResume() {
super.onResume();
Intent intent = getIntent();
String string=intent.getAction();
Uri data = intent.getData();
Log.d("hello","cgbdsuyfdkv");
}
,但它不工作,请任何机构可以帮助我! !
是您的代码第一次运行? –
是运行我的代码和我的网址这样(通知:// id = notificationid)但它可以不能工作 –
但第二次你无法获得更新通知ID?右 –