Re: [PhoneGap] Re: Windows Phone app require access to location services, although app doesn't use it

39 views
Skip to first unread message

Shazron

unread,
May 16, 2013, 12:06:11 PM5/16/13
to phonegap
Hi Jonathan,
Please comment on the issue itself and the developer responsible may be able to explain.


On Thu, May 16, 2013 at 3:38 AM, Jonathan Colledge <jonathan...@googlemail.com> wrote:
Did you find a solution? This same problem has been posted many times, but the only solution seems to be to use the method described here: http://thesociablegeek.com/phone-gap-tutorial/phone-gap-tutorial-3-reducing-the-load/ but that is for a very early version of phonegap anddoesn't work in later versions.
 
The issue submitted here: https://issues.apache.org/jira/browse/CB-109 says it has been resolved, but there are no instructions to say how to solve it using the resolution.
 
If you did find a solution, please let us know!
 
Jonathan
 

On Tuesday, 6 November 2012 14:58:08 UTC, Frank Groeneveld wrote:
Our first app has been approved by Microsoft :)
However, when installing the app, the user has to accept the fact that the app will have access to "location services". We have explicitly removed this capability from the WMAppManifest.xml, but this is still shown to the user.

According to some help pages I found, the market scans the actual XAP for usage of these capabilities and show the user the "accept screen". I think there is something in the default PhoneGap application that is detected by the market. Is there any way to prevent this from happening? I.e. prevent the user from having to accept the "allow access to location services" capability.

Thanks in advance,

Regards,
Frank Groeneveld

--
-- You received this message because you are subscribed to the Google
Groups "phonegap" group.
To post to this group, send email to phon...@googlegroups.com
To unsubscribe from this group, send email to
phonegap+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/phonegap?hl=en?hl=en
 
For more info on PhoneGap or to download the code go to www.phonegap.com
 
To compile in the cloud, check out build.phonegap.com
---
You received this message because you are subscribed to the Google Groups "phonegap" group.
To unsubscribe from this group and stop receiving emails from it, send an email to phonegap+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Jonathan Colledge

unread,
May 16, 2013, 12:19:22 PM5/16/13
to phon...@googlegroups.com
I was hoping the developer would be able to say if they solved their issue - the exact same issue as the others have posted, yet none including his have any responses. If he did find a solution, it would be very useful to what appears to be a large number of us having the same problem.
 
Jonathan

Jonathan Colledge

unread,
May 16, 2013, 12:23:11 PM5/16/13
to phon...@googlegroups.com
Basically, I am having the same issue and the links I posted show that other people are too, but the solutions given either don't work or are out of date. If Frank Groeneveld did find a solution to his post, all I was asking was for him to share it if he could please.
 
Jonathan

Shazron

unread,
May 16, 2013, 12:27:51 PM5/16/13
to phonegap
Ok I hear you. No use posting _here_, post your concerns in the "issue itself". 

Jonathan Colledge

unread,
May 16, 2013, 12:33:53 PM5/16/13
to phon...@googlegroups.com
Thanks, will do.

Jesse

unread,
May 16, 2013, 3:15:10 PM5/16/13
to phon...@googlegroups.com
What version of Cordova are you using and which template did you start your project with?

@purplecabbage

Jonathan Colledge

unread,
May 18, 2013, 9:30:58 AM5/18/13
to phon...@googlegroups.com
Thanks, Purplecabbage. I was using PhoneGap 2.7.0. Deleting the plugins causes many errors when trying to build, but I hadn't tried it your way (with the project closed from Windows explorer). Though I have found another solution:

If you build for WP8, whatever you specify as a capability in the WMAppManifest file is reflected in the market place - so that works fine.

However, if your app is for WP7.1, the market place ignores the WMAppManifest file, analyses your XAP and states that you require all capabilities. This happens regardless of whether you use the standalone or full package in PhoneGap 2.7.0. To solve this I used PhoneGap 1.9.0 and followed the Sociable Geek's instructions here: http://thesociablegeek.com/phone-gap-tutorial/phone-gap-tutorial-3-reducing-the-load/

In order to have two XAPs for the same app (an old one compatible with WP7.1 using PhoneGap 1.9.0 and a new one compatible with WP8 only using PhoneGap 2.7.0) I followed the instructions here: http://blogs.windows.com/windows_phone/b/wpdev/archive/2013/01/15/app-submission-tips-for-windows-phone-7-and-windows-phone-8.aspx

Really I don't need two and could just use PhoneGap 1.9.0 because apps made for WP7.1 run on WP8 too, but I don't like the idea of being out of date!

For anyone who needs the features of PhoneGap 2.7.0, it seems that the only solution is to produce one XAP for WP7.1 which will have all the (off-putting) requirements/capabilities and one XAP for WP8 in which you can specify the capabilities you need. That way at least you provide for both platforms and keep the WP8 users happy by not threatening their privacy.

Interestingly PhoneGap build is affected as it builds for WP7.1.

I hope this helps someone else. It took me many hours of searching the internet and racking my brains to come up with this hybrid solution.

Jonathan
Reply all
Reply to author
Forward
0 new messages