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

feat: Add support for iOS #101

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

feat: Add support for iOS #101

wants to merge 7 commits into from

Conversation

Jurpp
Copy link

@Jurpp Jurpp commented Jul 20, 2021

This Library would break on iOS (see #88). As most people create their app in React Native to build for iOS and Android simultaneously I created a Pod for iOS to mock the native calls. Besides that I added a platform check to bypass the addListener and once functions completely. The library now no longer crashes the iOS build. yarn example ios can be used to start the example app in an iOS emulator. Linters and tests are passing.

All we need to look at is whether autolinking is working correctly, the example app links the Pod manually at this moment.

@Jurpp
Copy link
Author

Jurpp commented Jul 21, 2021

Unfortunately auto linking does not seem to be working yet. I will submit a new PR once fixed.

@Jurpp Jurpp closed this Jul 21, 2021
@Jurpp
Copy link
Author

Jurpp commented Jul 21, 2021

Fixed with latest commit

@Jurpp Jurpp reopened this Jul 21, 2021
@cinder92
Copy link

cinder92 commented Aug 4, 2021

@Jurpp this PR allows to check if the location service is enabled?

@Jurpp
Copy link
Author

Jurpp commented Aug 5, 2021

@cinder92 No this won't do anything on iOS. It just ensures that your iOS build will not crash when using this library for the Android part of of your app. Currently when importing the library in your Javascript the iOS build crashes.

@Marma92
Copy link

Marma92 commented Apr 12, 2022

@YsnKsy since it is fixing iOS crashes, could you please accept this merge request, please ?

MJahanzaibKhan
MJahanzaibKhan approved these changes Sep 21, 2022
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.

4 participants