Skip to content

Getting issue in integrating notification extension service using clevertap #36

Description

@bipincmore87

is unavailable: not available on iOS (App Extension) - Use view controller based solutions where appropriate instead.
if (![[UIApplication sharedApplication] canOpenURL:testURL]) {
^
In module 'UIKit' imported from /Users/manish.kumar/Desktop/MarketPlace/marketplaceapp/ios/Pods/Target Support Files/AppAuth/AppAuth-prefix.pch:2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator17.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:87:54: note: property 'sharedApplication' is declared unavailable here
@Property(class, nonatomic, readonly) UIApplication *sharedApplication NS_EXTENSION_UNAVAILABLE_IOS("Use view controller based solutions where appropriate instead.");
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator17.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:87:54: note: 'sharedApplication' has been explicitly marked unavailable here
/Users/manish.kumar/Desktop/MarketPlace/marketplaceapp/ios/Pods/AppAuth/Sources/AppAuth/iOS/OIDExternalUserAgentIOSCustomBrowser.m:148:23: error: 'sharedApplication' is unavailable: not available on iOS (App Extension) - Use view controller based solutions where appropriate instead.
[[UIApplication sharedApplication] openURL:_appStoreURL];
^
In module 'UIKit' imported from /Users/manish.kumar/Desktop/MarketPlace/marketplaceapp/ios/Pods/Target Support Files/AppAuth/AppAuth-prefix.pch:2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator17.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:87:54: note: property 'sharedApplication' is declared unavailable here
@Property(class, nonatomic, readonly) UIApplication *sharedApplication NS_EXTENSION_UNAVAILABLE_IOS("Use view controller based solutions where appropriate instead.");
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator17.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:87:54: note: 'sharedApplication' has been explicitly marked unavailable here
/Users/manish.kumar/Desktop/MarketPlace/marketplaceapp/ios/Pods/AppAuth/Sources/AppAuth/iOS/OIDExternalUserAgentIOSCustomBrowser.m:148:42: warning: 'openURL:' is deprecated: first deprecated in iOS 10.0 [-Wdeprecated-declarations]
[[UIApplication sharedApplication] openURL:_appStoreURL];
^~~~~~~
openURL:options:completionHandler:
In module 'UIKit' imported from /Users/manish.kumar/Desktop/MarketPlace/marketplaceapp/ios/Pods/Target Support Files/AppAuth/AppAuth-prefix.pch:2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator17.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:97:1: note: 'openURL:' has been explicitly marked deprecated here

  • (BOOL)openURL:(NSURL*)url API_DEPRECATED_WITH_REPLACEMENT("openURL:options:completionHandler:", ios(2.0, 10.0)) API_UNAVAILABLE(visionos);
    ^
    /Users/manish.kumar/Desktop/MarketPlace/marketplaceapp/ios/Pods/AppAuth/Sources/AppAuth/iOS/OIDExternalUserAgentIOSCustomBrowser.m:156:42: error: 'sharedApplication' is unavailable: not available on iOS (App Extension) - Use view controller based solutions where appropriate instead.
    BOOL openedInBrowser = [[UIApplication sharedApplication] openURL:requestURL];
    ^
    In module 'UIKit' imported from /Users/manish.kumar/Desktop/MarketPlace/marketplaceapp/ios/Pods/Target Support Files/AppAuth/AppAuth-prefix.pch:2:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator17.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:87:54: note: property 'sharedApplication' is declared unavailable here
    @Property(class, nonatomic, readonly) UIApplication *sharedApplication NS_EXTENSION_UNAVAILABLE_IOS("Use view controller based solutions where appropriate instead.");
    ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator17.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:87:54: note: 'sharedApplication' has been explicitly marked unavailable here
    /Users/manish.kumar/Desktop/MarketPlace/marketplaceapp/ios/Pods/AppAuth/Sources/AppAuth/iOS/OIDExternalUserAgentIOSCustomBrowser.m:156:61: warning: 'openURL:' is deprecated: first deprecated in iOS 10.0 [-Wdeprecated-declarations]
    BOOL openedInBrowser = [[UIApplication sharedApplication] openURL:requestURL];
    ^~~~~~~
    openURL:options:completionHandler:
    In module 'UIKit' imported from /Users/manish.kumar/Desktop/MarketPlace/marketplaceapp/ios/Pods/Target Support Files/AppAuth/AppAuth-prefix.pch:2:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator17.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:97:1: note: 'openURL:' has been explicitly marked deprecated here
  • (BOOL)openURL:(NSURL*)url API_DEPRECATED_WITH_REPLACEMENT("openURL:options:completionHandler:", ios(2.0, 10.0)) API_UNAVAILABLE(visionos);
    ^
    2 warnings and 3 errors generated.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions