iOS Push Notifications work for Dev but not Enterprise Distribution -


i have read many posts here , been through apple docs day. none of posts here have answers , docs unclear on issue.

we have app receiving push notifications when using dev profile not when use our enterprise distribution profile.

the app id enabled push notifications in sandbox.

the cert , both profiles associated app id.

if build form xcode push notifications come in fine. if archive , distribute server returns:

[failed push 6dje7djksis7hyhdjshsjksjd74jdjskshdjd8dhjjdkwu reason 8] 

which invalid token.

one thing noticed our dev provisioning profile has following aps-environment:

<key>aps-environment</key> <string>development</string> 

while enterprise distribution profile has:

<key>aps-environment</key> <string>production</string> 

when run debug build phone (push works) .app file's entitlements are:

<key>aps-environment</key> <string>development</string> 

when archive (no matter provisioning profile use or scheme):

<key>aps-environment</key> <string>production</string> 

can tell me if expected? none of other questions on site have been able find come reason why dev work enterprise distribution not.

why archiving always make aps-environment production?

thanks time.

update interesting.

from:

http://developer.apple.com/library/ios/#documentation/networkinginternet/conceptual/remotenotificationspg/provisioningdevelopment/provisioningdevelopment.html

"you must separate certificates sandbox (development) environment , production environment. certificates associated identifier of application recipient of push notifications; identifier includes application’s bundle id. when create provisioning profile 1 of environments, requisite entitlements automatically added profile, including entitlement specific push notifications, . the 2 provisioning profiles called development , distribution. distribution provisioning profile requirement submitting application app store."

this mean don't use distribution profile unless going production. true? seems weird since can make enterprise distribution profile before going app store.

anyone have idea that? can't find specific information in docs that.

thanks

there 2 push certificates app. 1 development , 1 production. in push certificate section of provisioning portal.

so whatever push mechanism using send pushes needs configured correct certificate. in case, enterprise release receive pushes using production/distribution certificate.


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -