Skip to content
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

[TIMOB-24916] iOS: Guard json-stringification for Ti.Geolocation.lastGeolocation #9186

Merged
merged 4 commits into from Jul 11, 2017

Conversation

hansemannn
Copy link
Collaborator

Copy link
Contributor

@vijaysingh-axway vijaysingh-axway left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FT and CR passed.

@ssjsamir ssjsamir self-requested a review July 11, 2017 23:45
Copy link
Contributor

@ssjsamir ssjsamir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FR Passed: Application no longer crashed when Ti.Geolocation.getLastGeolocation is called before a geoLocation is set.

Test steps

  • Created a Titanium SDK using this PR
  • Created a new titanium project
  • Copied the code from the test case in https://jira.appcelerator.org/browse/TIMOB-24916
  • Ran the project
  • Pressed Get Geo Before geoLocation started
  • Application no longer crashed and the following was shown in the console
    [DEBUG] : Location undefined

Test Environment
Iphone 6S(iOS 10.0)
Appcelerator Command-Line Interface, version 6.2.2
Google Nexus 6P (7.1.1)
Operating System Name: Mac OS X El Capitan
Operating System Version: 10.11.6
Node.js Version: 6.10.1
Xcode: 8.2
Appcelerator Studio: 4.9.0.201705251638

@ssjsamir ssjsamir merged commit 1778bcc into tidev:master Jul 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants