GPS authorization for IOS

59 views
Skip to first unread message

shmu....@gmail.com

unread,
Jul 20, 2016, 2:06:52 PM7/20/16
to CodenameOne Discussions
I am working on an app which is using GPS on Android and IOS platforms. The program worked fine on both platform. IOS asked correctly authorization for GPS. After the last codename1 update, IOS doesn't ask any authorization for GPS and throws an exception when running. I did not change anything in the properties file, except for GoogleMaps usage. Do you have any idea about the origin of the problem. We are ready to put the app on the market, but we are blocked on this problem. 

Steve Hannah

unread,
Jul 20, 2016, 2:08:29 PM7/20/16
to codenameone...@googlegroups.com
Can you post the build hints from your codenameone_settings.properties file?  Particularly the ios.* hints

Steve

On Wed, Jul 20, 2016 at 11:06 AM, <shmu....@gmail.com> wrote:
I am working on an app which is using GPS on Android and IOS platforms. The program worked fine on both platform. IOS asked correctly authorization for GPS. After the last codename1 update, IOS doesn't ask any authorization for GPS and throws an exception when running. I did not change anything in the properties file, except for GoogleMaps usage. Do you have any idea about the origin of the problem. We are ready to put the app on the market, but we are blocked on this problem. 

--
You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to codenameone-discu...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/af40c50e-731d-4a94-8c4b-d382c90b4092%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Steve Hannah
Software Developer
Codename One

Frantz Koenig

unread,
Jul 20, 2016, 2:15:41 PM7/20/16
to codenameone...@googlegroups.com
Hello Steve,

Find bellow my properties :

------------------------------------------------------------------------------------------
#
#Wed Jul 20 19:23:30 CEST 2016
codename1.ios.appid=(CONFIDENTIAL).com.(CONFIDENTIAL)
codename1.ios.release.provision=F\:\\Projets\\Codenameone\\provisioning\\(CONFIDENTIAL)_distribution.mobileprovision
codename1.arg.java.version=8
codename1.arg.rim.obfuscation=false
codename1.arg.ios.objC=true
codename1.arg.ios.newStorageLocation=true
codename1.j2me.nativeTheme=nbproject/nativej2me.res
codename1.arg.ios.project_type=ios
codename1.arg.ios.interface_orientation=UIInterfaceOrientationPortrait\:UIInterfaceOrientationPortraitUpsideDown
codename1.displayName=(CONFIDENTIAL)
codename1.arg.ios.pods.platform=7.0
codename1.android.keystoreAlias=
codename1.arg.android.xapplication=<meta-data android\:name\="com.google.android.maps.v2.API_KEY" android\:value\="(CONFIDENTIAL)"/>
codename1.ios.release.certificate=F\:\\Projets\\Codenameone\\provisioning\\(CONFIDENTIAL)_distribution.p12
codename1.arg.ios.background_modes=location
codename1.android.keystorePassword=
codename1.ios.provision=
codename1.arg.ios.add_libs=libc++.dylib;libicucore.dylib;libz.dylib;CoreData.framework;CoreText.framework;GLKit.framework;ImageIO.framework;SystemConfiguration.framework
codename1.arg.ios.dsym=false
codename1.arg.android.release=true
codename1.arg.ios.glAppDelegateHeader=\#import "GoogleMaps/GoogleMaps.h"\n\#import "GoogleMaps/GoogleMaps.h"
codename1.arg.ios.statusbar_hidden=true
codename1.arg.android.includeGPlayServices=true
codename1.arg.ios.afterFinishLaunching=[GMSServices provideAPIKey\:@"(CONFIDENTIAL)"];
codename1.languageLevel=5
codename1.android.keystore=
codename1.arg.ios.pods=GoogleMaps,GoogleMaps
codename1.vendor=CodenameOne
codename1.arg.javascript.googlemaps.key=YOUR_JAVASCRIPT_API_KEY
codename1.arg.win.ver=8
codename1.arg.ios.locationUsageDescription='CrewLocate needs your location to work'
codename1.ios.certificatePassword=
codename1.ios.debug.certificatePassword=password
codename1.mainName=CrewLocate
codename1.ios.release.certificatePassword=password
codename1.arg.ios.prerendered_icon=false
libVersion=118
codename1.ios.debug.certificate=F\:\\Projets\\Codenameone\\provisioning\\(CONFIDENTIAL)_development.p12
codename1.arg.android.xpermissions=<uses-permission android\:name\="android.permission.ACCESS_NETWORK_STATE"/> <uses-permission android\:name\="com.google.android.providers.gsf.permission.READ_GSERVICES"/><uses-feature android\:glEsVersion\="0x00020000" android\:required\="true"/> <uses-permission android\:name\="android.permission.ACCESS_NETWORK_STATE"/> <uses-permission android\:name\="com.google.android.providers.gsf.permission.READ_GSERVICES"/><uses-feature         android\:glEsVersion\="0x00020000"         android\:required\="true"/>
codename1.arg.ios.application_exits=false
codename1.secondaryTitle=CodenameOne_Template
codename1.description=
codename1.ios.debug.provision=F\:\\Projets\\Codenameone\\provisioning\\(CONFIDENTIAL)_development.mobileprovision
codename1.arg.j2me.nativeThemeConst=0
codename1.rim.certificatePassword=
codename1.version=1.0
codename1.ios.certificate=
codename1.icon=icon.png
codename1.rim.signtoolCsk=
codename1.arg.android.debug=false
codename1.rim.signtoolDb=
codename1.arg.ios.includePush=false
codename1.arg.ios.testFlight=false
codename1.packageName=com.(CONFIDENTIAL)
------------------------------------------------------------------------------------------

(CONFIDENTIAL) = my data

Best regard

Frantz

--
You received this message because you are subscribed to a topic in the Google Groups "CodenameOne Discussions" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/codenameone-discussions/CE0w-ylc35o/unsubscribe.
To unsubscribe from this group and all its topics, send an email to codenameone-discu...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--


|   Frantz Koenig - Shmu Design
|   06 20 37 22 71 - con...@shmu.fr
|   4 rue Dalpozzo - 06000 NICE

Steve Hannah

unread,
Jul 20, 2016, 2:30:44 PM7/20/16
to codenameone...@googlegroups.com
Hmm.  That all looks fine.  When was the last known good build done?  I'd like to narrow down the time frame between it working and not working as narrowly as possible.

Steve


For more options, visit https://groups.google.com/d/optout.

Frantz Koenig

unread,
Jul 20, 2016, 2:39:28 PM7/20/16
to codenameone...@googlegroups.com
Thanks for your reply, it work before the update of the Google Map library !


The app work fine on Android but in IOS, the problem is there is no on/off switch to manage GPS and Pictures in app parameters only cellular data !

If you have an idea

Thanks in advance

Frantz


For more options, visit https://groups.google.com/d/optout.

Shai Almog

unread,
Jul 21, 2016, 1:13:53 AM7/21/16
to CodenameOne Discussions, con...@shmu.fr
That shouldn't have that effect but maybe the cocoapods build process triggered this.
Reply all
Reply to author
Forward
0 new messages