Blackberry Resolution Issues - Hint works differently on different devices

I have a few questions about permissions and tips. The most important thing is connected with data connection and using GPS

QUESTIONS

1. Tips & Allow - Delete Notification? . When installing my application (signed) on different devices, some devices ask the user to connect to the data, and some do not (the connection has just been made). I check permissions, and on both devices a data connection is connected to them. Why does one device just make a connection and the other requires a hint? NOTE. Both devices are on the same carrier (version) and are not limited to BES.

2. The Premission dialog box in Recent Build:. In a recent build, the user manages to resolve the data request. In a previous version of the assembly, this pompt never happened (although both assemblies make a data connection, which may require an invitation). For life, I can’t say what changes I can have that led to pompts. Is there anything I should check in the build / project / files file so that these tooltips no longer appear?

3. Set permissions during installation ?: Is there a way to forcefully allow (for example, allow) permissions to install the application? I know I can do invokePermissionsRequest, but this will happen during application launch. Ideally, I would like permissions to be resolved without user intervention or during installation.

Some facts:

  • Development for 4.2.1 and higher
  • Applications are signed
  • Applications use data and GPS connectivity
+4
source share
3 answers

In connection with your questions No. 1 and No. 2 ... Depending on which OS the device is used, there may be differences in behavior. Many permissions were changed / renamed / created when OS 4.7 was released. For example, here are the permissions I request for OS 4.5:

ApplicationPermissions.PERMISSION_FILE_API ApplicationPermissions.PERMISSION_INTER_PROCESS_COMMUNUCATION ApplicationPermissions.PERMISSION_CHANGE_DEVICE_SETTINGS ApplicationPermissions.PERMISSION_EXTERNAL_CONNECTIONS ApplicationPermissions.PERMISSION_INTERNAL_CONNECTIONS ApplicationPermissions.PERMISSION_WIFI ApplicationPermissions.PERMISSION_EMAIL ApplicationPermissions.PERMISSION_HANDHELD_KEYSTORE 

And here are the permissions that I request for OS 4.7:

 ApplicationPermissions.PERMISSION_FILE_API ApplicationPermissions.PERMISSION_CROSS_APPLICATION_COMMUNICATION ApplicationPermissions.PERMISSION_DEVICE_SETTINGS ApplicationPermissions.PERMISSION_INTERNET ApplicationPermissions.PERMISSION_SERVER_NETWORK ApplicationPermissions.PERMISSION_WIFI ApplicationPermissions.PERMISSION_EMAIL ApplicationPermissions.PERMISSION_SECURITY_DATA, 

You can see that the number of rights has been renamed. You may need to update the code to find out about the OS and request specific permissions.

In question number 3, there is no way to execute any code during installation. The best thing you can do is make your AutoPlay on Startup application and run a check. However, this may be the worst solution, as the user may get confused by receiving a dialog box asking for permission at startup.

The best solution is to make sure that you have sufficient privileges every time you start the application. If not, request all the necessary privileges and process everything as gracefully as possible. If you complete this successfully, your users will only deal with permissions the first time your application is launched (until they talk to them later).

0
source

Question number 1. check if the firewall is turned on. Settings-> Security Settings-> Firewall. If it is turned on, you will be prompted when you try to access the GPS, if it is not turned on, you will not be asked.

Question number 2. This may have something to do with the status of the previous version of your application. If you install on top of an existing application, the blackberry will “remember” what tips it has already given you, and what is your answer. On the other hand, if you remove them before installation, the blackberry will be “forgotten”.

Question No. 3. Unable to run native code during installation.

0
source

Regarding question No. 3, if your program is set to start automatically at startup, it will be launched during installation. This is how applications and / or libraries are tied to system hooks during installation. You must be careful when rebooting, because it is always possible that the system will decide that a reboot is required for the update, in which case your code will be launched at the end of the reboot process, but before the user interface is available. Therefore, this code should check if it is resolved correctly. If not, there is a delay until the user interface is started (if it is not full), make calls to request changes.

0
source

All Articles