2012年10月16日 星期二

使用ACS發push notification到Android手機

Titanium有個cloud服務提供了push notification

今天將進行使用  ACS 來傳送notification

先登入 ACS

選擇你要發送notification的app名稱

點選  Manage ACS 再輸入帳號密碼

因為是開發測試

所以又上要記得點選 Development

移至最下面點選Users

再點Create a Users

把資料填一填 待會會用到email與密碼

填完按下 create User

再點 左上方的Back to App Management 回去

點選push notification

然後開始寫程式


使用Titanium設定tiapp.xml


    <modules>
        <module platform="commonjs" version="2.3.0">ti.cloud</module>
        <module platform="android">ti.cloudpush</module>
    </modules>

新增紅色的

接下來請參考  這裡



3 則留言:

Unknown 提到...

Hi, I have written a Titanium Android Module for JPUSH - A Chinese Push Service provider - its working and tested and works really well - visit my site for more details - http://kiteplans.info/2014/04/05/module-appcelerator-titanium-alloy-jpush-push-notification-module-android-china-push-non-gcm/

James 提到...

thanks~!

Unknown 提到...

Updated: Appcelerator Titanium Alloy JPUSH Push Notification Module – iOS and Android, China Push Notification- NON GCM - http://kiteplans.info/2015/04/04/appcelerator-titanium-alloy-jpush-push-notification-module-ios-and-android-china-push-notification-non-gcm/