Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Developer
Posts: 324
Registered: ‎03-10-2010
My Device: Bold 9780, DevAlpha
My Carrier: Vodafone CZ

SMS listener and permission provider

One small question - what kind of permission i must to request via PermissionRequest to allow SMS listener (via Datagramm)?

 

Please provide name of permission required.

Highlighted
Developer
Posts: 4,764
Registered: ‎07-21-2008
My Device: Not Specified

Re: SMS listener and permission provider

Phone

Developer
Posts: 324
Registered: ‎03-10-2010
My Device: Bold 9780, DevAlpha
My Carrier: Vodafone CZ

Re: SMS listener and permission provider

permRequest.addPermission(ApplicationPermissions.PERMISSION_PHONE) ? It does not work Smiley Sad

 

Anyway, i've get a message that my application trying to listen incoming sms.

Developer
Posts: 4,764
Registered: ‎07-21-2008
My Device: Not Specified

Re: SMS listener and permission provider

Are you invoking the request to get the user to approve?

 

            boolean allowed = permissionsManager.invokePermissionsRequest(newPermissions);

 

Also, is your app signed? If not, you will always get a user prompt : "is this OK?"

 

You might also try setting the permission manually in the device applicaiton settings.