Azure-Samples / Azure-Samples/communication-services-ios-quickstarts
Push Notification: 'shared' is unavailable in application extensions for iOS: Use view controller based solutions where appropriate instead.
- Dominant language
- Swift
- Stars
- 13
- Forks
- 27
- PR merge metrics
- No merged PRs in 30d
Description
### This issue is for a: (mark with an `x`)
```
- [x] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)
```
### Minimal steps to reproduce
> Followed the Microsoft Azure tutorial [link](https://learn.microsoft.com/en-us/azure/communication-services/tutorials/add-chat-push-notifications#2---advanced-version) for integrating push notifications into a chat application.
Encountered the error message: "'shared' is unavailable in application extensions for iOS: Use view controller based solutions where appropriate instead."
### Any log messages given by the failure
> The error you provided, "'shared' is unavailable in application extensions for iOS: Use view controller based solutions where appropriate instead," indicates a problem with the AzureCore dependency.
### Expected/desired behavior
> Successful compilation without errors on ./add-chat-push-notifications in xcode 15.
### OS and Version?
> macOS Ventura. xCode 15
### Versions
> pod 'AzureCommunicationChat', '~> 1.3.3'
### Mention any other details that might be useful
Encountered the same issue in both a direct integration into the chat project and when using the Microsoft-provided example project [link](https://github.com/Azure-Samples/communication-services-ios-quickstarts/tree/main/add-chat-push-notifications). The issue appears to be related to the AzureCore dependency, and a possible solution was suggested in the Apple Developer Forums [link](https://developer.apple.com/forums/thread/685369), recommending the use of @available(iOSApplicationExtension, unavailable). This change may need to be implemented in the Azure SDK to resolve the issue.
Contributor guide
Assessment
This issue has not been assessed yet.