Set "priority": "high"
{ "to": "gcm_device_token", "priority": "high", "content_available": false, "notification": { "sound": "default", "badge": "1", "title": "Push Title", "body": "Push Body" } }
The code for the working environment is used here:
_registrationOptions = @{kGGLInstanceIDRegisterAPNSOption:deviceToken, kGGLInstanceIDAPNSServerTypeSandboxOption:@NO};
Here is the code to use in the development environment:
_registrationOptions = @{kGGLInstanceIDRegisterAPNSOption:deviceToken, kGGLInstanceIDAPNSServerTypeSandboxOption:@YES};
source share