2015-10-01 21 views
0

在使用wso2emm時,我注意到了我們想要改變的特定行爲。這就是當你向一組設備發出部署時,服務器將發送一條json消息,通知客戶端他們的軟件有新的更新,並且如果在下載更新過程中出現任何問題,json消息將丟失。在wso2emm中檢測應用程序版本

我已將這個保存在客戶端,以便我們可以捕獲錯誤並重試並恢復下載。我的問題是,由於我不熟悉大量的網絡開發,在哪裏可以修改向移動客戶端發送消息的邏輯?

回答

1

如果您正在使用android的LOCAL通知,服務器會在API中添加更新/安裝軟件的消息。
當Android從服務器拉出時,設備讀取該消息並將其標記爲已讀入數據庫狀態。然後,服務器從API隊列中刪除該消息。 如果你正在使用android的LOCAL通知,你可以採取任何這些方法來找出真正發生的事情。

方法1:(手動點點)

Change android side code for sending version of device apps into server and change server side code to display app version in deivce tab UI. 
Then cross check that your app have latest version or backdated version. If it have backdated version, then send update to that device/s.


方法2:

Do not mark as read this update message when 1st read this by device from API message queue. 
Update read status after successfully update/install new version.