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

Expand Diagnostic.permissionStatus to feature more permission statuses #443

Closed
matt-auckland opened this issue Oct 4, 2021 · 4 comments
Closed

Comments

@matt-auckland
Copy link

So in #437 I added in the AUTHORIZATION_PROVISIONAL and AUTHORIZATION_EPHEMERAL consts into the iOS side of the plugin, and I wonder if I should update the Diagnostic.permissionStatus object in the JS side of the plugin to include these?

I imagine there may be some other forms of status that could also be included, e.g. Precise Location and Approximate Location.

I'm happy to do the work and add all of these @dpa99c, just wondering if you had suggestions as to what other statuses are missing or if you think some shouldn't be added for whatever reason.

@michael-roewin
Copy link

michael-roewin commented Oct 5, 2021

HI, I've encountered an issue in building my IOS app when using the 6.0.4 version of the cordova-diagnostic-plugin.

/Users/runner/work/1/s/ios/capacitor-cordova-ios-plugins/sources/Cordova.plugins.diagnostic/Diagnostic_Notifications.m:130:38: error: use of undeclared identifier 'UNAuthorizationStatusEphemeral'; did you mean 'UNAuthorizationStatusDenied'? if(authStatus == UNAuthorizationStatusEphemeral) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ UNAuthorizationStatusDenied

Is this somehow related to this issue?

When I revert back to version 6.0.2 the ios app builds just fine. However, my android app fails building when using version 6.0.2.

Any help would be appreciated.
Thanks

@matt-auckland
Copy link
Author

Which version of XCode are you using? I wonder if older versions don't support this (https://developer.apple.com/documentation/usernotifications/unauthorizationstatus/ephemeral)

I had no issues building with XCode 12 or 13.

@netenDeveloper
Copy link

@matt-auckland
perhaps this log will be help,,,
Xcode 11.3

build_log_6163a26be78885744fa7c698_2021-10-16 11_55_57.log

@matt-auckland
Copy link
Author

If possible I would try building with a newer version of XCode, I think that support for the "Emphermeral Status" was added in XCode 12.

@dpa99c dpa99c added the ready for release On master branch but not published as npm release label Jul 26, 2022
@dpa99c dpa99c closed this as completed in 88dd89a Jul 29, 2022
@dpa99c dpa99c removed the ready for release On master branch but not published as npm release label Jul 29, 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

No branches or pull requests

4 participants