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

Push Notfication's

$
0
0

I seem to be having some trouble setting up my push notifications with Titanium. I can't seem to get a success on the following. I have followed this tutorial HERE

Titanium.Network.registerForPushNotifications({
    types: [
    Titanium.Network.NOTIFICATION_TYPE_BADGE,
    Titanium.Network.NOTIFICATION_TYPE_ALERT
    ],
success:function(e)
{
        var deviceToken = e.deviceToken;
        alert('device token is' +e.deviceToken);
    },
error:function(e)
{
    alert("Error during registration: "+e.error);
}
});
With that tutorial I was able to create a user, everything except been able to get a device token. On the error it just alerts out " no valid ' aps-environment' entitlement string found for application.

I have read about that error msg is something to do with the Apple certs, But I have used push notfications with urban airship before and i'm using the same certs with the same APP I.D. I have now changed around the certs and APP i.D to see if that would help, But nothing happens. If anyone can help on this matter would be great. Thanks in advance. I'm using SDK 3.2.2GA and on an Iphone 6 Device


Viewing all articles
Browse latest Browse all 8068

Trending Articles