I am creating a branch using websdk. The following link properties from websdk:
var sampleParams = {
tags: [ 'tag1', 'tag2' ],
channel: 'sample app',
feature: 'share',
stage: 'created link',
type: 1,
data: {
mydata: 'bar',
job_public:'https://onblickqa1.azurewebsites.net/Job/JobDetails?jobId=586e7f0dc99b2c0caccdae7d',
'$desktop_url': 'https://onblickqa1.azurewebsites.net/Job/JobDetails?jobId=586e7f0dc99b2c0caccdae7d',
'$og_title': 'Branch Metrics',
'$og_description': 'Branch Metrics',
'$og_image_url': 'http://branch.io/img/logo_icon_white.png'
}
};
and using the short url generation described above, the url from the branch looks like https://nc6e.test-app.link/BUy4NMpRGz
Now I use this link via email. When I click on the above link in android, the application cannot detect this link. It is always redirected to the Playstore URL.
Android Manifest:
<activity android:name=".activities.DeepLinkingActivity" android:launchMode="singleTop">
<intent-filter>
<data android:scheme="mvppdmo" android:host="open" />
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
</intent-filter>
<meta-data
android:name="io.branch.sdk.auto_link_path"
android:value="job_public" />
<meta-data
android:name="io.branch.sdk.auto_link_request_code"
android:value="@integer/AutoDeeplinkRequestCode" />
</activity>
Dashboard Settings:
I checked the “ Android application ” and Enable application links
Uri: mvppdmo: // schema
and gave SHA1
Note. I use the same test key in the web interface and Android.
- , ?
Logcat:
I/ActivityManager: START u0 {act=android.intent.action.VIEW dat=https://nc6e.test-app.link/... flg=0x14002000 cmp=com.android.chrome/org.chromium.chrome.browser.ChromeTabbedActivity (has extras)} from uid 10054 on display 0
I/chromium: [INFO:CONSOLE(0)] "Mixed Content: The page at 'https://nc6e.test-app.link/nX2d5p9pIz?__branch_flow_type=chrome_deepview&__branch_flow_id=345908912462718295' was loaded over HTTPS, but requested an insecure image 'http://branch.io/img/logo_icon_white.png'. This content should also be served over HTTPS.", source: https://nc6e.test-app.link/nX2d5p9pIz?__branch_flow_type=chrome_deepview&__branch_flow_id=345908912462718295 (0)