2017-08-20 55 views
0

我註冊了一個信標(由Android設備上的應用程序模擬,屬於Eddystone-UID類型),並試圖從Google Beacon Platform儀表板設置附近的通知。無法接收應用程序意圖類型附近通知 - 信標

當我創建類型爲「App Intent」的通知時,當設備接近充當信標的設備時,設備未收到該通知。但是,如果我設置了「Web URL」類型的附近通知,它會顯示在該信標範圍內的所有設備上。

當設置類型應用程序的通知意向,我提供以下資料: 1.意向方案(同下面的代碼的方案)應用的 2.包裝名稱 - 同什麼是在應用程序的清單文件 將意向路徑字段留空,因爲它不是強制性的。

這是在應用程序的清單的意圖過濾器:

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

      <category android:name="android.intent.category.LAUNCHER" /> 
      <category android:name="android.intent.category.DEFAULT"/> 
      <category android:name="android.intent.category.BROWSABLE"/> 
      <data android:scheme="app" /> 
     </intent-filter> 

我試圖尋找幾個博客和視頻,但我無法找出問題。有人能指出我的錯誤嗎?

謝謝。

回答

0

嘗試WHIS

<intent-filter> 
    <action android:name="android.intent.action.VIEW"/> 
    <!-- both categories below are required --> 
    <category android:name="android.intent.category.BROWSABLE"/> 
    <category android:name="android.intent.category.DEFAULT"/> 
    <data android:host="host" 
     android:pathPrefix="/path" 
     android:scheme="yourscheme"/> 
</intent-filter> 
+0

如果你已經解決了,你可以將它張貼作爲回答這個問題? –

相關問題