New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Location can't be work now using built hint codename1.ios.xcode_version=9.2 #2366
Comments
could you see this committ |
Are you including the |
I have this buil hints codename1.arg.ios.locationUsageDescription=xxxxx |
you committed this constant in CodenameOne_GLViewController.h //#define INCLUDE_LOCATION_USAGE |
you commented this constant in CodenameOne_GLViewController.h //#define INCLUDE_LOCATION_USAGE |
That gets uncommented automatically if you include either You can use the include sources option to check the resulting source code and verify that it is uncommented. |
I check the resulting source code in xcode and it is commentted, Please check |
I've already verified. Working fine for me. |
What the means that? I check that the resulting code of you built server it commentted this line |
The problem it continue yet... Please help me to solve it |
Could you write the correct way to add this built hint? The problem it continue... The dialog prompt of the location it never appear in ios. |
|
I use this
codenameone.arg.ios.NSLocationUsageDescription but it don't work
El 18 mar. 2018 12:27 PM, "Codename One" <notifications@github.com>
escribió:
… ios.NSLocationUsageDescription & not ios.NSlocationUsageDescription
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#2366 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/APfj-zrarKoTZmCFmyA_otz2EnKe5Ebfks5tforagaJpZM4SuSyH>
.
|
Should be Probably best not to edit the build hints directly in the settings file so you don't make mistakes like this. |
Excuse me I wrote bad the built hint in my last email. I always use this
codename1.arg.ios.NSLocationUsageDescription
but it don't work
2018-03-19 7:43 GMT-04:00 Steve Hannah <notifications@github.com>:
… Should be codename1.arg.ios.NSLocationUsageDescription not
codenameone.arg.ios.NSLocationUsageDescription.
Probably best not to edit the build hints directly in the settings file so
you don't make mistakes like this.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#2366 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/APfj-8osrqduKP7o2ksqfwIivpNvIf7lks5tf5nRgaJpZM4SuSyH>
.
--
__________________________________
GOD BLESS YOU FROM:
Keylon Duran Paulino
|
Post your full codenameone_settings file so I can see all of your build hints. I can't reproduce this issue. |
ok this my full codenameone_settings. Before you analyze my codenameone_setting. It necessary that you Know that I'm doing the test in IPHONE 6 IOS 11.2.5. I made the test in other iphone 5 IOS 10.3.1 and the Location permission dialog is prompted perfectly. codename1.ios.appid=Q3M78PUB2Y.com.geotracksolutionsint.multiasistenciaglobal |
You're missing the |
I had tested with this built hint or without its and the problem it continue yet. is this the correct syntax? sincerely I don't know witch build hints now are necessary to get location, because you tell me if I have the it should work. |
Just use This build hint has been required for a long time (since iOS 7, I think). |
I know that this build hint has been required from IOS 7 but when you update your server to xcode 9.2 some problem you introduced.Because my app it work perfectly. I tested again adding this but it continue the problem. Now I will test removing the. codename1.arg.ios.NSLocationUsageDescription=It will be used to send user's current location to emergency response center |
I know that this build hint has been required from IOS 7 but when you update your server to xcode 9.2 some problem you introduced, because my app it worked perfectly. I tested again adding this but it continue the problem. Now I will test removing the. codename1.arg.ios.NSLocationUsageDescription=It will be used to send user's current location to emergency response center |
the problem it continue yet |
I has tested all possible combination of this build hints and the problem it continue. It never the Location Permission dialog it prompted. I See the resulting code an I could check that all is ok but I don't know where is the problem... |
I has check that the resulting code of your built server does not include NSLocationAlwaysUsageDescription please check. I just add the NSLocationWhenInUseUsageDescription I try adding the codename1.arg.ios.NSLocationWhenInUseUsageDescription=It will be used to send user's current location to emergency response center and it work at use app but not working Always use location Please check.... https://stackoverflow.com/questions/26005122/requestalwaysauthorization-not-showing-permission-alert |
Don't use the NSLocationXXXUsageDescription directives. If you need access to background location, then you also need the ios.background_modes=location directive. These are not new. These have not changed. |
You checked muy full codenameone_settings. I had tested this but it
continue the problem
…On Mon, Mar 19, 2018, 12:27 PM Steve Hannah ***@***.***> wrote:
Don't use the NSLocationXXXUsageDescription directives.
Use ios.locationUsageDescription
If you need access to background location, then you also need the
ios.background_modes=location directive.
These are not new. These have not changed.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#2366 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/APfj-4ITcZbnriD-tR3zeVn4ReUyw7qpks5tf9xxgaJpZM4SuSyH>
.
|
Remove all of your ios.NSLocationXXXXUsageDescription build hints. Only use ios.locationUsageDescription and ios.background_modes=location |
Upon further review, I have found a regression. For now, you should be able to workaround it by using the following build hints: ios.locationUsageDescription=xxx There will be a fix posted shortly so that you can return to just using ios.locationUsageDescription=xxx |
I test again with your last sugestion and the problem it continue. Where this change it will available in build server? |
I test again with your last sugestion and the problem it continue. When this change it will available in build server? |
If those build hints don't work for you, then the build server update won't help you. |
I remove all Nsxx UsageDescriptions built hint and I add just your sugested
built hint. Could you tell me what is the problem?. You don't create a fix
committ?
…On Mon, Mar 19, 2018, 3:26 PM Steve Hannah ***@***.***> wrote:
If those build hints don't work for you, then the build server update
won't help you.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#2366 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/APfj-3devb0RCpJRqjmgL3q4hAY4aWWHks5tgAZ8gaJpZM4SuSyH>
.
|
Do you applied your fix in the build server or I need to wait until the
friday update?
…On Mon, Mar 19, 2018, 3:26 PM Steve Hannah ***@***.***> wrote:
If those build hints don't work for you, then the build server update
won't help you.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#2366 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/APfj-3devb0RCpJRqjmgL3q4hAY4aWWHks5tgAZ8gaJpZM4SuSyH>
.
|
If you have all of these build hints:
And it still doesn't work, then I can't tell you what's wrong. You may need to download the sources and build/run in Xcode. The only regression that I fixed was that starting with Xcode 9, Apple now requires that you specify all 3 privacy usage descriptions: if you want to run background location. It used to only require one of ios.NSLocationWhenInUseUsageDescription and ios.NSLocationAlwaysUsageDescription. If you add all of the build hints that I suggested, it will add all of these. You can verify by downloading the sources and looking at the info.plist |
the problem was solved adding this codename1.arg.ios.locationUsageDescription=xxxx |
I have check your last commit changes and I could check that you commented the lines in the file CodenameOne_GLViewController.h
//#define INCLUDE_CONTACTS_USAGE
//#define INCLUDE_CALENDARS_USAGE
//#define INCLUDE_CAMERA_USAGE
//#define INCLUDE_FACEID_USAGE
//#define INCLUDE_LOCATION_USAGE
//#define INCLUDE_MICROPHONE_USAGE
//#define INCLUDE_MOTION_USAGE
//#define INCLUDE_PHOTOLIBRARYADD_USAGE
//#define INCLUDE_PHOTOLIBRARY_USAGE
//#define INCLUDE_REMINDERS_USAGE
//#define INCLUDE_SIRI_USAGE
//#define INCLUDE_SPEECHRECOGNITION_USAGE
//#define INCLUDE_NFCREADER_USAGE
Then I check that in the file IOSNative.m you need to instance the Location natively.
But if you commented how the location it will work properly?
The text was updated successfully, but these errors were encountered: