Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

PushNotifications

$
0
0

Hello,

I'm want to add push notification service to my app, I tried some scripts but I think that something is missing, to do that I:

1- Cloud and cloudPush Module 2- I configured the apps (for example for the Android App, I added GCM Key and the Project Number) 3- I configured my Ti.xml width keys and acs push type 4- I used this code:

CloudPush.retrieveDeviceToken({
    success: function deviceTokenSuccess(e) {
        deviceToken=e.deviceToken;
      Ti.API.info('Device Token PUSH: ' + e.deviceToken);
      if(e.deviceToken!='undefined')
        {
            SaveDevice(1,e.deviceToken);
        }
 
    },
    error: function deviceTokenError(e) {
      Ti.API.info('Error: ' + e.error;
    }
});
With Android the device is registred, but on my developper console, on the app's pushnotifications logs I don't find it...

When I try to send a push, the app crash... and sometimes I have on my titanium consol acs-push-url error or something like that, and sometimes I have "payload error"...

I tried with JSON Api, I have "Failed to authentificate user"

My questions:

  • Did I miss something ?

  • There is another way to register, receive the PushNotifications ? (Android / iOS)

  • I must use the ACS to do it ?

  • I can develope my own Module to the registration ? can any one give's me a good tutorial for that ?

Application Type: Mobile Ti SDK: 3.4.1 GA Plateforme : iOS / Android OS: Windows 7

Thank you very much


Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>