This is a migrated thread and some comments may be shown as answers.

Non-public API usage and Missing Push Notification Entitlement

3 Answers 129 Views
Apple iOS
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Paul
Top achievements
Rank 1
Paul asked on 26 Aug 2014, 09:03 PM

Hello,

I have been attempting to upload my app to the apple store and I am unable to because iTunes Connect is saying the app is 1) 
Non-public API usage:
The app references non-public selectors in Cordova350:
_addTouch:forDelayedDelivery:, _clearTouches, _gsEvent, _hidEvent,
_setGSEvent:, _setHIDEvent:, _setLocationInWindow:resetPrevious:,
_touchesEvent, displayTypeHint,
simulateTouchForCharacter:errorVector:shouldTypeVariants:baseKeyForVariants:,
terminateWithSuccess

Missing Push Notification Entitlement -
Your app appears to include API used to register with the Apple Push Notification service,
but the app signature's entitlements do not include the "aps-environment" entitlement.    


I have no idea how I am supposed to do anything about the 'Non-public API usage' because that's cordova stuff, not mine. And I have push notifications disabled so how am I supposed to fix that issue?
Thanks everyone!

3 Answers, 1 is accepted

Sort by
0
Iva Koevska
Telerik team
answered on 29 Aug 2014, 11:19 AM
Hello Paul,

Thank you for contacting the Telerik support system.

Currently, you are facing two separate issues that are preventing you from being able to publish your app.

First, the non-public API usage. The quoted methods are actually used by the Telerik Mobile Testing integrated plugin. Please, verify that it is disabled in your app. To do so, go to Project Properties -> Plugins -> Integrated Plugins and make sure that the plugin is not enabled.

Second, the push notifications entitlements. There are two possible approaches here, based on your current project.
If you are not using push notifications anywhere in your app, make sure that you do not have the PushPlugin enabled. Again, go to Project Properties -> Plugins -> Integrated Plugins and make sure that the plugin is not enabled. In addition, check whether any other custom plugins you are using, do not use push notifications.
If you are using push notifications or if the above does not help, you need to fix your App ID and provisioning profile in the iOS Dev Center and in AppBuilder.
1. Go to the iOS Dev Center, log in, and navigate to the Identifiers section.
2. Locate your identifier, select it and click Edit.
3. Enable push notifications for the identifier and save your changes.
4. Go to the profiles section.
5. Locate your provisioning profile, select it and click Edit.
6. Regenerate it, download it, and re-import it in AppBuilder.
7. Rebuild your app.

Let us know if you need further help.

Regards,
Iva Koevska
Telerik
 

Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

 
0
Rhett
Top achievements
Rank 1
answered on 05 Feb 2015, 07:29 PM
Hello,

I got the same message as Paul.

Missing Push Notification Entitlement
Your app appears to include API used to register with the Apple Push Notification service, 
but the app signature's entitlements do not include the "aps-environment" entitlement.   

The PushPlugin is disabled, same as the Notification Plugin, and I don't want to use notifications at this moment, but I still have the same error every time I upload the app to the App Store. The cordova version is 3.5.
0
Tina Stancheva
Telerik team
answered on 09 Feb 2015, 05:05 PM
Hi Rhett,

This is a known issue introduced after Cordova 3.5 within the Cordova iOS API which invokes a method related to the Push Notifications. When Apple evaluate the code and encounter that method they suppose a usage of push notifications in the app and they therefore warn you about the case.

The issue is also discussed in the Cordova forums and you can find more info from this thread.

We are looking for a solution we can implement in AppBuilder but in the meantime, you can ignore this warning as it should not in any way interfere with your upload and the app's behavior.

Regards,
Tina Stancheva
Telerik
 

Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

 
Tags
Apple iOS
Asked by
Paul
Top achievements
Rank 1
Answers by
Iva Koevska
Telerik team
Rhett
Top achievements
Rank 1
Tina Stancheva
Telerik team
Share this question
or