Titanium Cloud push notification to android not always working

You must Login before you can answer or comment on any questions.

hey all, I'm trying to implement the Titanium ACS cloud service in order to stop using Urban-Airship. Iv'e been able to receive push notifications successfully through a Test-App I wrote. Then, when I tried using it in my Original app it just doesn't work despite the fact that everything's looking good: The app can get the device's (Android Emulator) Token to be subscribed and using the a REST request I get a good response. The problem is that nothing is shown on the device, like the Callback function in not called. In the Emulator's running services the app is running.

Any ideas? Thanks!!!

— asked 1 year ago by Nir Weber
2 Comments
  • Hi Nir, Good to heard you can able to receive push notification in your test app.

    But I tried the same. I cant make it.
         I created new project and added following lines 
    
    In tiapp.xml
    ---------------
    

    <modules> <module platform="commonjs" version="2.0.1">ti.cloud</module> </modules>

    In app.js
    -----------
        var Cloud = require('ti.cloud');
    

    Im getting following error

    Uncaught Error: Requested module not found: ti.cloud

    throw new Error("Requested module not found: " + request);

    Exception occurred at ti:/module.js:353: Uncaught Error: Requested module not found: ti.cloud

    I'm using Titanium Studio, build: 2.0.1.201204132053 in Windows Vista.

    I don't find commonjs / ti.cloud folders inside my Titanium installation folders- tree.

    can you please help me to understand about push notification implementation using Ti.Cloud module?

    Thanks

    — commented 1 year ago by Sam Sam

  • have a look here : http://docs.appcelerator.com/titanium/2.0/index.html#!/api/Titanium.CloudPush or here for iOS http://blog.teemusk.com/2012/05/building-server-push-notifications-with-appcelerator-titanium-cloud/comment-page-1/#comment-7696

    — commented 12 months ago by Jérémie Samson

5 Answers

hi nir, i am new to titanium i want to implement push notification in my android app. can u provide any steps or code to follow? thanks in advance.

You can refer following sample project for push notifications.

http://www.titaniumtutorial.com/2012/06/appcelerator-cloud-push-notification-in.html

Thanks, Jakir

1)Titanium version >= 2.1.0 2)ti.cloudpush >= 2.0.5 3)ti.cloud >= 2.1.0

Hi, I use the upush module in the Marketplace, took me 10 minutes to get it working, cost $30 but has saved me so much time.

Your Answer

Think you can help? Login to answer this question!