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?右 –