ゲームの 1 つでnextpeerマルチプレイヤー SDKを使用しました。2日間機能し、現在はアラートが表示されています-「サーバーから切断されました。後でもう一度やり直してください」.
これが私の nextpeer 初期化コードです。
-(void)initializeNextpeer:(NSDictionary *)launchOptions
{
BOOL isRetina = (IS_IPAD) ? FALSE : TRUE ;
NSDictionary* settings = [NSDictionary dictionaryWithObjectsAndKeys:
// This game has no retina support - therefore we have to let the platform know
[NSNumber numberWithBool:isRetina], NextpeerSettingGameSupportsRetina,
// Support orientation change for the dashboard notifications
[NSNumber numberWithBool:TRUE], NextpeerSettingSupportsDashboardRotation,
// Support orientation change for the in game notifications
[NSNumber numberWithBool:TRUE], NextpeerSettingObserveNotificationOrientationChange,
// Place the in game notifications on the bottom screen (so the current score will be visible)
[NSNumber numberWithInt:NPNotificationPosition_TOP], NextpeerSettingNotificationPosition,
nil];
[Nextpeer initializeWithProductKey:@"47874e79e3b0d02c4fe1847fbdb54a1d2e02b943"
andSettings:settings
andDelegates:[NPDelegatesContainer containerWithNextpeerDelegate:self]];
// Register for push notifications
[[UIApplication sharedApplication]
registerForRemoteNotificationTypes:
UIRemoteNotificationTypeBadge |
UIRemoteNotificationTypeSound |
UIRemoteNotificationTypeAlert];
// Handle any notifications the game was launched with
[Nextpeer handleLaunchOptions:launchOptions];
}
突然動作しなくなり、このアラートが表示されるのはなぜですか? 誰もが同様の問題に直面しましたか?