Objective c token pushwoosh为零

Objective c token pushwoosh为零,objective-c,pushwoosh,Objective C,Pushwoosh,在我的应用程序中,一个pushNotificationManager给我一个等于零的pushToken。。。仅适用于IOS 8.1.3。。。。设备是ipad3。使用其他设备(或其他IOS版本)我的测试没有问题 我使用此代码调用getPushToken [[PushNotificationManager pushManager] getPushToken] 在我的应用程序中,我有 -(void) settingPushwoosh:(NSDictionary *)launchOptions {

在我的应用程序中,一个pushNotificationManager给我一个等于零的pushToken。。。仅适用于IOS 8.1.3。。。。设备是ipad3。使用其他设备(或其他IOS版本)我的测试没有问题

我使用此代码调用getPushToken

[[PushNotificationManager pushManager] getPushToken]
在我的应用程序中,我有

-(void) settingPushwoosh:(NSDictionary *)launchOptions {
    // set custom delegate for push handling, in our case - view controller
    PushNotificationManager * pushManager = [PushNotificationManager pushManager];
    pushManager.delegate = self;

    // handling push on app start
    [[PushNotificationManager pushManager] handlePushReceived:launchOptions];

    // make sure we count app open in Pushwoosh stats
    [[PushNotificationManager pushManager] sendAppOpen];

    // register for push notifications!
    [[PushNotificationManager pushManager] registerForPushNotifications];
}

当收到推送令牌时,您是否收到代理回调?有时您需要稍等,因为这是异步操作。

是的,我收到委托回调。pushNotificationManager对象不为null,但其所有属性均为nil。。。。