twilio / voice-quickstart-objc

Twilio Voice Quickstart for iOS with Objective-C
MIT License
39 stars 24 forks source link

no gettiing push in release mode #173

Closed syrakozz closed 5 years ago

syrakozz commented 5 years ago

i put a certificate for production in twilio but im not getting the push the error in logs is >> Pushing to this topic is not allowed am i doing it wrong ?

bobiechen-twilio commented 5 years ago

Hi @syrakozz

Could you please provide more information so we can help you debug the issue?

Thanks, -bobie

syrakozz commented 5 years ago

sure, the platform is IOS Error - 52143 - The push notification was rejected by APNs Error - 52134 - Invalid APNs device token

bobiechen-twilio commented 5 years ago

Thanks for providing additional info. It seems like the Push Credential SIDs of the sandbox environment and production environment are mixed and used with the wrong environments. The Push Credential SID used for the production environment should only be used for production version of the iOS app. You can follow the instructions for setting up the incoming capability for your app.

Let me know if this helps. -bobie

bobiechen-twilio commented 5 years ago

Hi @syrakozz By the way, when you said Pushing to this topic is not allowed, what was the error you were seeing? or was it in the detailed descriptions of the error that you saw in the console?

syrakozz commented 5 years ago

i was seeing this Error - 52143 The push notification was rejected by APNs

bindingType "apn"
primaryCorrelationId "CA8e731cd4125a8f318c6c0d5371a4844b"
bindingSid "BS42dbff3c0d30ffd49d3ca378b22634eb"
providerMessageId "c28810fc-1a29-c38a-0f20-3dd11bead942"
requestId "RQac2a9b606d4d9d7a6278bc448dbda808"
notificationSid "NTe77ab87f1fbfb1dc5ca3c9e5697ba8a5"
module "APNSBA"
description "Pushing to this topic is not allowed."
isPassthrough "false"
deliverySid "DA22a9a02a0ff8b9925134092c259ca069"
fromReference "CR7264c40cbe67ae89aed885ce060285d9"
bobiechen-twilio commented 5 years ago

Thanks for the update @syrakozz. Please check if you are using the right Push Credential SID for the environment.

syrakozz commented 5 years ago

i regenerate the certificate now , still not getting push , but in the error logs im only getting 52134 - Invalid APNs device token

bobiechen-twilio commented 5 years ago

Hi @syrakozz

Since this is an iOS specific issue, could you please go to the Voice iOS quickstart repo and open a new ticket so we can resume the debugging there?

Thanks. -bobie