1. #1
    Sencha User
    Join Date
    May 2012
    Location
    Belgium
    Posts
    3
    Vote Rating
    0
    Rob Devos is on a distinguished road

      0  

    Default Unanswered: Ext.device.Push

    Unanswered: Ext.device.Push


    Has anyone managed to get a device token from iOS to execute push notifications. I've build a Sencha touch 2.0 application, packaged it for native use. But I can't seem to get any response out of the Ext.device.Push.

    I don't get a succes nor failure event.


    Code:
    onRegister: function () {
            Ext.device.Push.register({
                type: Ext.device.Push.ALERT | Ext.device.Push.BADGE | Ext.device.Push.SOUND,
                success: function (token) {
                    console.log('# Push notification registration successful:');
                    Ext.Msg.alert('    token: ' + token);
                },
                failure: function (error) {
                    console.log('# Push notification registration unsuccessful:');
                    Ext.Msg.alert('     error: ' + error);
                },
                received: function (notifications) {
                    console.log('# Push notification received:');
                    Ext.Msg.alert('    ' + JSON.stringify(notifications));
                }
                
        
            });
    
    
        },

  2. #2
    Sencha User
    Join Date
    May 2012
    Posts
    8
    Vote Rating
    0
    rudacs is on a distinguished road

      0  

    Default


    I have the same problem!

  3. #3
    Sencha User
    Join Date
    Apr 2012
    Posts
    12
    Vote Rating
    0
    riskitforbiscuit is on a distinguished road

      0  

    Default stuck at push notification

    stuck at push notification


    Please share a sample code if u guys succeed in this. Meanwhile i m also trying to make it at my side.