Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-13532] Keep Track of Ti.CloudPush 2.2 Update

GitHub Issuen/a
TypeStory
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2013-05-22T23:34:48.000+0000
Affected Version/sn/a
Fix Version/s2013 Sprint 11 Core, 2013 Sprint 11, Release 3.1.1, Release 3.2.0
ComponentsAndroid
Labelsn/a
ReporterPaul Lv
AssigneeSabil Rahim
Created2013-04-11T22:46:51.000+0000
Updated2017-03-22T22:45:40.000+0000

Description

For a new feature raised from ACS side to use a general Haproxy to assign different apps to different environment (production or enterprise), we need to add appKey along with all Coordinator's HTTP request. For getting device token, it already had that. For now getting host adds appKey as well. This ticket is for a track on TIMOB part, and concerete implementation has been done by CLOUDSRV-2281.

Comments

  1. Jeff English 2013-04-16

    Code reviewed - approved
  2. Matt Langston 2013-05-22

    I found this PR for master: https://github.com/appcelerator/titanium_mobile/pull/4211 And this PR for the 3_1_X back port: https://github.com/appcelerator/titanium_mobile/pull/4212 However, this ticket is missing a test case for the Functional Review.
  3. Mukesh Gadiya 2013-05-22

    1. Build the titanium SDK from this commit: https://github.com/appcelerator/titanium_mobile/pull/4211/commits 2. Unzip the SDK zip file and verify that modules/android/ti.cloudpush/2.2.0 exists 3. Create a new titanium mob project from Appcelerator studio 3.1.1.x ( Make sure the version is 3.1.1 ) using the SDK from above steps. 3.5 add ti.cloudpush module ( make sure the version is 2.2.0) 4. Log in, with same credentails as from appcel studio, in dashboard.appcelerator.com and verify that you can see this project on dashboard under your org 4.5 Go to Cloud tab and click on Settings and Configuration. In the text box labelled, Android Push Configuration , paste your ti mob app name. 5. Copy the contents of /modules/commonjs/ti.cloud/2.3.4/example to Resources directory in the titanium mob project 6. Build the project and install it on android device 7. on separate terminal, execute adb logcat and observe adb logs 8. When the app is launched on device, go to push notifications/settings/ and click on first button, marked 'disabled' to turn the push notification on for this app. This should bring up device token retrieved pop-up. Also, adb logcat should show the api.cloud.appcelerator.com/v1/notifications/subscribe.json api request and valid response containing valid MQTT host connected to this device. 8. a. Go to users row in the app and click on Create user and fill in the fields 8. b. Go push notification tabs and click on subscribe, fill in channel name and click subscribe and it should show up a pop-up saying subscribed 9. Go to dashabord.appcelerator.com and select your app from left top corner. 10. Go to cloud -> pushnotifications and verify that one android device is shown as a subscribed device. 11. click on send push notification 12. Fill in the details and click send 13. The phone should receive the push notification payload sent from website.
  4. Matt Langston 2013-05-22

    FR passed for https://github.com/appcelerator/titanium_mobile/pull/4211. PR merged to master.
  5. Matt Langston 2013-05-22

    FR passed for https://github.com/appcelerator/titanium_mobile/pull/4212. PR merged to 3_1_X.
  6. Lee Morris 2017-03-22

    Closing ticket as fixed.

JSON Source