How to allow gps in signed app?
Hi,
Our customer got tired of app always asking permission for gps (and also internet).
So we ordered certificate from Thawte.
Now the the application is signed and it does not ask about gps permission, but it defaults to not
allowing it!
How to allow gps (and internet) connection in this case?
Platform is s60 3rd edt. and more specifically Nokia C5-02.
Thanks in advance.
Re: How to allow gps in signed app?
Hi Mikko and welcome to Nokia's Discussion Boards,
Have you tried the MIDlet-Permissions-Opt jad attribute as described [URL="http://www.developer.nokia.com/Resources/Library/Java/developers-guides/security/midp-security/signing-a-midlet-suite.html"]here[/URL]?
Are you also catching any SecurityExceptions that may be thrown by [URL="http://www.developer.nokia.com/Resources/Library/Java/#!developers-guides/security/midp-security/appendix-c-summary-of-protected-methods/location-api-jsr-179.html"]these[/URL] protected location method calls?
Re: How to allow gps in signed app?
We got it solved.
The solution was a correct set of MIDlet-Permissions in jar and jad.
MIDlet-Permissions: javax.microedition.io.Connector.http,
javax.microedition.io.Connector.socket,
javax.microedition.location.Location