I have deployed an app to the Apple App store
. Local and on device testing went fine, but when the app is loaded from the App store
onto an iOS 7.1
device, the user receives a Access to Server is Disabled - Login Failed dialog, followed by a solid white screen.
Looking at the phone console log, the following error appears:
backboardd[31] <Error>: HID: The 'Rate Controlled' connection '<application name>' access to protected services is denied.
Searching on Apple developer forums and StackOverflow show others having similar issues over the past few weeks, but with no clear resolution. This one in particular notes the same issue and that it may be related to Cordova: HID: The 'Rate Controlled' connection 'app' access to protected services is denied
If I turn off the Worklight Server, the app gives a standard Connection Failure message and continues to work properly in Offline Mode, except for any features that call server adapters.
Server and Worklight Studio are running Consumer Edition.
Not sure if this is an app specific code issue, a permissions problem in iOS, or a core conflict between Cordova
and iOS 7.1
(yesterday's 7.1.1 shows the same issue).
Any ideas?
It turns out the 6.1.0.1 fixpack installation was not completing properly. While it looked ok at installation, if you watched the logs carefully, there were errors about halfway through. This may have been due to trying to upgrade a deployed app that was already on 6.1.0.1. Since the server only had the one app deployed, we undeployed and removed the app and associated war file. This allowed the fixpack to complete installation correctly.
Next, after re-deploying the app (same war file), to the server, we still got a protected services is denied error, but it no longer said “Rate Controlled”. The device error log then started reporting a version issue. The App Store app and the server version were both supposed to be “2.1”, but after we re-deployed the server version with “2.0”, the app started communicating with the server and adapters.
Finally, we still have an issue that the iOS version is not triggering direct updates for the app (same code, Android version does work properly). We have not yet needed an update, so will test this on our next App Store push.
来源:https://stackoverflow.com/questions/23242860/worklight-6-1-access-to-protected-services-is-denied-after-app-is-deployed-to