Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-2487] Android: Implement Urban Airship Module.

GitHub Issuen/a
TypeNew Feature
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:59:14.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.6.0 M07
ComponentsAndroid
Labelsandroid, feature, module, release-1.6.0
ReporterDon Thorp
AssigneeNathaniel McCallum
Created2011-04-15T03:21:02.000+0000
Updated2011-04-17T01:59:14.000+0000

Description

Module for UA API. Use same Titanium API as iPhone.

Comments

  1. Don Thorp 2011-04-15

    Moving to 1.5.1 M01 since it's not tied to 1.5.0

  2. Taazza 2011-04-15

    Don .. We were hoping for this in 1.5.. Any chance u can bring it into 1.5.1? Push notification is one of the most requested feature!

    Let us know if we can help test it. Cheers!

  3. Don Thorp 2011-04-15

    This module will be released when we roll out the market in 2011.

  4. Thomas Huelbert 2011-04-15

    using [INFO] Titanium SDK version: 1.6.0 (01/10/11 08:25 3452f06) and a droid1 (2.2.1) and the sim, I fail and see the following output...

    I/ActivityManager( 1088): Displayed activity com.appcelerator.android.uatest2/org.appcelerator.titanium.TiActivity: 315 ms (total 315 ms)
    D/TitaniumModule( 4239): (kroll$4) [285,972] Attempting to include native module: ti.urbanAirship
    D/TitaniumModule( 4239): (kroll$4) [2,974] Succesfully loaded module: urbanAirship/1.0
    E/TiUIView( 4239): (main) [8754,9728] TAP, TAP, TAP on [Ti.UI.Button]
    I/TiAPI ( 4239): (kroll$4) [4,9732] Registering... If you do not already have AirMail installed, you will be prompted to install it. Go ahead and do so.
    D/UA.push ( 4239): Registering
    D/AirMail ( 3859): CoreReceiver action: com.urbanairship.airmail.START_REGISTER
    D/AirMail ( 3859): Not scheduling AirMailService restart, app is valid
    D/AirMail ( 3859): sending valid: com.appcelerator.android.uatest2, true
    D/AirMail ( 3859): extIntentName: com.urbanairship.airmail.END_REGISTER
    D/UrbanAirshipModule( 4239): (main) [78,9810] Got apid: 0e930e7b-8113-4010-9d2d-afec1552d230
    I/TiAPI ( 4239): (kroll$4) [2,9812] Successfully registered. APID: 0e930e7b-8113-4010-9d2d-afec1552d230
    D/dalvikvm( 3859): GC_EXPLICIT freed 228 objects / 12992 bytes in 69ms
    D/dalvikvm( 4910): GC_EXPLICIT freed 1775 objects / 117896 bytes in 76ms
    D/dalvikvm( 1783): GC_EXPLICIT freed 1977 objects / 156008 bytes in 64ms
    D/dalvikvm( 1768): GC_EXPLICIT freed 83 objects / 3584 bytes in 92ms
    D/dalvikvm( 1211): GC_EXPLICIT freed 143 objects / 6232 bytes in 84ms
    D/AirMail ( 3859): response read
    D/AirMail ( 3859): Got appid: com.appcelerator.android.uatest2
    I/AirMail ( 3859): Message 3409bf90-48d7-4e6c-8fea-60226e26439c received.
    E/JavaBinder( 3859): !!! FAILED BINDER TRANSACTION !!!
    I/AirMail ( 3859): Unexpected exception in Helium connection. Network type=WIFI
    E/AirMail ( 3859): null
    E/AirMail ( 3859): java.lang.RuntimeException: bad array lengths
    E/AirMail ( 3859): at android.os.Parcel.readIntArray(Parcel.java:677)
    E/AirMail ( 3859): at android.app.INotificationManager$Stub$Proxy.enqueueNotificationWithTag(INotificationManager.java:275)
    E/AirMail ( 3859): at android.app.NotificationManager.notify(NotificationManager.java:110)
    E/AirMail ( 3859): at android.app.NotificationManager.notify(NotificationManager.java:90)
    E/AirMail ( 3859): at com.urbanairship.airmail.Relier.showNotification(Relier.java:401)
    E/AirMail ( 3859): at com.urbanairship.airmail.Relier.deliverPush(Relier.java:353)
    E/AirMail ( 3859): at com.urbanairship.airmail.Helium.handleNotification(Helium.java:129)
    E/AirMail ( 3859): at com.urbanairship.airmail.Helium.readResponse(Helium.java:96)
    E/AirMail ( 3859): at com.urbanairship.airmail.ConnectionThread.run(ConnectionThread.java:70)
    I/AirMail ( 3859): Setting failure count for 75.101.253.33:1227 to 1
    I/AirMail ( 3859): Rescheduling connection in 10000ms.
    I/AirMail ( 3859): Service started with intent=Intent { act=com.urbanairship.airmail.RECONNECT flg=0x4 cmp=com.urbanairship.airmail/.AirMailService (has extras) }
    I/AirMail ( 3859): Reconnecting...
    I/AirMail ( 3859): Connecting to 75.101.253.33:1227
    I/wpa_supplicant( 1719): CTRL-EVENT-STATE-CHANGE id=1 state=6 BSSID=00:00:00:00:00:00
    V/WifiMonitor( 1088): Event [CTRL-EVENT-STATE-CHANGE id=1 state=6 BSSID=00:00:00:00:00:00]
    I/wpa_supplicant( 1719): WPA: Group rekeying completed with 00:21:e9:b8:cd:15 [GTK=CCMP]
    I/wpa_supplicant( 1719): CTRL-EVENT-STATE-CHANGE id=1 state=7 BSSID=00:00:00:00:00:00
    I/wpa_supplicant( 1719): CTRL-EVENT-STATE-CHANGE id=1 state=6 BSSID=00:00:00:00:00:00
    I/wpa_supplicant( 1719): WPA: Group rekeying completed with 00:21:e9:b8:cd:15 [GTK=CCMP]
    I/wpa_supplicant( 1719): CTRL-EVENT-STATE-CHANGE id=1 state=7 BSSID=00:00:00:00:00:00
    V/WifiStateTracker( 1088): Changing supplicant state: COMPLETED ==> GROUP_HANDSHAKE
    V/WifiMonitor( 1088): Event [WPA: Group rekeying completed with 00:21:e9:b8:cd:15 [GTK=CCMP]]
    V/WifiMonitor( 1088): Event [CTRL-EVENT-STATE-CHANGE id=1 state=7 BSSID=00:00:00:00:00:00]
    V/WifiStateTracker( 1088): Changing supplicant state: GROUP_HANDSHAKE ==> COMPLETED
    V/WifiMonitor( 1088): Event [CTRL-EVENT-STATE-CHANGE id=1 state=6 BSSID=00:00:00:00:00:00]
    V/WifiStateTracker( 1088): Changing supplicant state: COMPLETED ==> GROUP_HANDSHAKE
    V/WifiMonitor( 1088): Event [WPA: Group rekeying completed with 00:21:e9:b8:cd:15 [GTK=CCMP]]
    V/WifiMonitor( 1088): Event [CTRL-EVENT-STATE-CHANGE id=1 state=7 BSSID=00:00:00:00:00:00]
    I/AirMail ( 3859): Connection established to /75.101.253.33:1227 on network type WIFI
    V/WifiStateTracker( 1088): Changing supplicant state: GROUP_HANDSHAKE ==> COMPLETED
    D/AirMail ( 3859): Size: 262
    I/AirMail ( 3859): Resetting failure count for 75.101.253.33:1227 to 0.
    D/AirMail ( 3859): response read
    D/AirMail ( 3859): Registration response received!
    D/AirMail ( 3859): Valid: com.appcelerator.android.uatest2
    D/AirMail ( 3859): Invalid:
    D/AirMail ( 3859): Relier(com.appcelerator.android.uatest2): Assigning enabled to 1
    D/AirMail ( 3859): sending valid: com.appcelerator.android.uatest2, true
    D/AirMail ( 3859): extIntentName: com.urbanairship.airmail.END_REGISTER
    D/UrbanAirshipModule( 4239): (main) [73200,83012] Got apid: 0e930e7b-8113-4010-9d2d-afec1552d230
    I/TiAPI ( 4239): (kroll$4) [2,83014] Successfully registered. APID: 0e930e7b-8113-4010-9d2d-afec1552d230
    D/dalvikvm( 3859): GC_EXPLICIT freed 2760 objects / 201080 bytes in 75ms

  5. Don Thorp 2011-04-15

    Moving somewhere we can look at it.

  6. Bill Dawson 2011-04-15

    ready for testing. Testing instructions sent via e-mail

  7. Opie Cyrus 2011-04-15

    Verified for me on Droid2 2.2

    Going to let Thomas set the issue to resolved though I was just a second set of eyes.

  8. Thomas Huelbert 2011-04-15

    using apk provided by Bill, I can confirm on a nexus s (2.3) G1 (1.6) and galaxy pad (2.2.2)

  9. Anthony Webb 2011-04-15

    Is this something that pro developers can test as well? I'd love to give it a whirl, we use UA for push right now on the iphone side and our android apps need the same functionality. Thanks.

  10. Don Thorp 2011-04-15

    @Anthony. Ask in Heldesk. I'm not 100% sure how PS/Support is handling it, but that would be where you find out.

JSON Source