语言

Menu
Sites
Language
KeepLocationUpdateAwake Privileges

My application was rejected due to missing privileges for KeepLocationUpdateAwake(bool) form LocationProvider although both needed privileges ( power and location) are included in manifest.xml !
Checking tool also finds that something is wrong with KeepLocationUpdateAwake(bool) saying :
The http://tizen.org/privilege/location and http://tizen.org/privilege/power
Both privileges are required. privilege is required for Tizen::Locations::LocationProvider::KeepLocationUpdateAwake.Undefined privilege alarm
although both privileges are included.

When quick fixing the problem(ctrl+1), tool adds something really weird to manifest file:
are
Both
http://tizen.org/privilege/power
privileges
http://tizen.org/privilege/vibrator
required.

It's kind of weird, did someone dealt with this problem before ? 

Steps to reproduce:
* develop project with locationProvider
* request LocationUpdateByInterval
* use KeepLocationUpdateAwake(true) method
* add needed privileges
* check privileges validation

 

Also does someone have a template for tizen circle icon ? (because it's pain in the ... ) ;)

编辑者为: Brock Boland 17 3月, 2014 原因: Paragraph tags added automatically from tizen_format_fix module.

响应

12 回复
Did Verification system point out specific API, KeepLocationUpdateAwake(bool), for missing privileges? I know that the system is verifying privileges, but not sure they are saying 'API' name in the verification result. Anyway, I also had the verification failure result different from actual SDK description regarding required privileges. I just re-registered app with explanation and raised the same in Q&A of seller site. Then, got 'pass'.
Paweł Huber
screening result gave this: "http://tizen.org/privilege/power Both privileges are required. is not defined. (Tizen::Locations::LocationProvider::KeepLocationUpdateAwake(bool)) " I pointed it out in the second certification and still was discarded. Q&A was useless in this matter...
Paweł Huber
screening result gave this: "http://tizen.org/privilege/power Both privileges are required. is not defined. (Tizen::Locations::LocationProvider::KeepLocationUpdateAwake(bool)) " I pointed it out in the second certification and still was discarded. Q&A was useless in this matter...
> When quick fixing the problem(ctrl+1), tool adds something really weird to manifest file: are Both http://tizen.org/privilege/power privileges http://tizen.org/privilege/vibrator required. -> Which tool do you mean? 'Check API and Privilege Violations' in project explorer menu only check privilege and provide required privilege info. Which tool add privilege into manifest directly?
Paweł Huber
When you run the 'Check API and Privilege Violations' the results are presented in Problems tab under Info section. If you right-click on info you can see on context menu option 'Quick fix (ctrl +1)' some time it's disabled but in case of privilege it's available.
Hmm.. weird. I was not able to reproduce it. I just imported Location Manager sample app and used KeepLocationUpdateAwake() at somewhere in the app. Test 'privilege'. No privilege alarm when I included both. And when I exclude the privileges and click 'Check API and Privilege Violations', yes, info message given, 'The http://tizen.org/privilege/location and http://tizen.org/privilege/power privilege is required for Tizen::Locations::LocationProvider::KeepLocationUpdateAwake.' correctly, and then when I select 'Quick Fix', the both are added successfully. (2.1.0 public SDK)
Paweł Huber
That's truly weird, because I did what you said and still quick fix adds some wird things (on Version : 2.1.0 Build id : 0130416-1439). I will reinstall sdk and see what happens, thanks for your interest and help hykim79!
Paweł Huber
I've reinstalled SDK, created empty project added LocationProvider, used KeepLocationUpdateAwake, run Privilege Checker, showed that I'm missing privileges to use it as expected, and when quick fixing still added some weird things to manifest.xml... manifest file -> http://pastebin.com/hKEHQDJL
Paweł Huber
Why there is no edit option ? Hykim79, could you check with location sample with api specified to 2.1, because it's seem to me it's API 2.1 specific and location sample is 2.0 out of the box. After switching to 2.1 there is still this issue of not recognizing privileges.
Keans
Did you make any progress here? I got the same problem. The certification says: http://tizen.org/privilege/power Both privileges are required. is not defined. (Tizen::Locations::LocationProvider::KeepLocationUpdateAwake(bool)) But both (location AND power) are defined in the manifest.
Patrick Mortara
This really seems to be bug in the SDK. I have the same issue. When using the KeepLocationUpdateAwake API, the SDK moans that i have to add both privileges, even though that both are already within the manifest. QuickFix didn't work for me either as it only adds garbage to the manifest.xml But the biggest problem seems to be that certification is not aware of this and rejects apps because of it.
Paweł Huber
I made a query on portathon website, and they taken care of this problem, as it seems as my application just passed certification. I just put in comment for testers that this is a bug, and this is not my fault since application works perfectly on the device. So just do the same,and if your application failed just because this I was suggested to just put a Q&A about this issue and they will pass it. Hope it helps :)