Why push notifications is not working on testflight?

前端 未结 9 1917
情话喂你
情话喂你 2020-11-29 20:06

I have tested push notifications as a developer account and it worked, But when i tried to put it on TestFlight for the testers to test it, it didn\'t show a push notificati

9条回答
  •  离开以前
    2020-11-29 20:38

    if you used GCM. In Development:-

    _registrationOptions = @{kGGLInstanceIDRegisterAPNSOption:deviceToken,
                                 kGGLInstanceIDAPNSServerTypeSandboxOption:@YES};
    

    In Distribution:-

    _registrationOptions = @{kGGLInstanceIDRegisterAPNSOption:deviceToken,
                                 kGGLInstanceIDAPNSServerTypeSandboxOption:@NO};
    

提交回复
热议问题