令牌 pushwoosh 为零

token pushwoosh is nil

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

我用这段代码调用了 getPushToken...

[[PushNotificationManager pushManager] getPushToken]

在我的 appDelegate 中我有

-(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];
}

收到push token后是否收到委托回调?有时您需要稍等片刻,因为这是异步操作。