09-18-2009 08:26 PM
09-20-2009 11:59 AM - edited 09-20-2009 12:01 PM
Carrier Internet permission having no effect is a known issue. You may want to report your test case into RIM Developer Issue Tracker under issue ID JAVAAPI-135.
As to checking whether the firewall will prompt the user for access permission or not, I'm not aware of a way to find this out. You can definitely find it out post-facto if the firewall denied access.
09-21-2009 03:49 PM
Yes, the first instance seems to be a bug that we should track under that issue ID.
The second test is a little different. The permission settings for prompt only actually create a prompt when the firewall is on. ie: a permission setting of Prompt is the same as Allow with the firewall off, but creates a real prompt when the firewall is on. When you respond to that prompt and select one of the checkboxes, your answer gets placed into the permissions db for that exact URL that you answered for. So, if you say Deny when prompted for access to say www.url.com, any further attempts to access that are denied - even if you change the overall setting to Allow later.
The Application Permissions API will allow you to request permission for the application at one time rather than hoping the user clicks on the right buttons as they appear. In 4.5.0 we added the ReasonProvider so that you can nicely tell the user what you are asking for, and in 4.7.0 we updated 2 parts of the API to work with these firewall details. As of 4.7.0, if you get the permissions for your application and the firewall is off, you will receive VALUE_ALLOW responses when the Permissions are set to ALLOW or PROMPT, as this is the effective permission setting. Secondly, checking for the permission to access a given URL takes into account any blocks set by the firewall itself. Originally this only looked at permission settings from the IT Policy, but since 4.7.0 you can use this to test if the user has clicked on Deny for your URL, and actually re-request that permission from them using the Application Permissions API.
09-21-2009 04:04 PM