Skip to content

implemented requestWhenInUseAuthorization - #17

Open
spelcaster wants to merge 4 commits into
agrass:masterfrom
spelcaster:location-request
Open

spelcaster wants to merge 4 commits into
agrass:masterfrom
spelcaster:location-request

Conversation

@spelcaster

Copy link
Copy Markdown
  • The method uses Promises to handle the location source settings intent;
  • Added a new react method called isLocationServiceEnabled to check if the gps service is enabled;
  • Fixed some breaking changes in gradle settings and the module react package;
  • Updated react-native dependency version;

- Use the react-native version from the user project;
- This updates the react-native to a version with new features that are
  going to be used later, such as Promises;
- The method requestWhenInUseAuthorization creates a promise that:
  - will be resolved if the location service is already enabled, or;
  - will be resolved onHostResume when the application is resumed after
    the return from the location source settings intent;
- Added the method isLocationServiceEnabled to allow the user to check
  the gps status from react;
- createJSModules does no longer exists in ReactPackage;
@spelcaster

Copy link
Copy Markdown
Author

This is for android only :|

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant