Non-public API usage and Missing Push Notification Entitlement

4 posts, 0 answers
  1. Paul
    Paul avatar
    4 posts
    Member since:
    Aug 2013

    Posted 26 Aug 2014 Link to this post

    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!

  2. Iva Koevska
    Admin
    Iva Koevska avatar
    286 posts

    Posted 29 Aug 2014 Link to this post

    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.

     
  3. Rhett
    Rhett avatar
    1 posts
    Member since:
    Aug 2013

    Posted 05 Feb 2015 in reply to Iva Koevska Link to this post

    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.
  4. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 09 Feb 2015 Link to this post

    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.

     
Back to Top