Content-Length: 258719 | pFad | http://github.com/NativeScript/NativeScript/pull/10627/files

43 fix(ios): replace depreciated UIApplication.shared.openUrl method call by jcassidyav · Pull Request #10627 · NativeScript/NativeScript · GitHub
Skip to content

fix(ios): replace depreciated UIApplication.shared.openUrl method call #10627

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

Merged
merged 1 commit into from
Oct 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions packages/core/utils/index.ios.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Trace } from '../trace';
import { ios as iOSUtils } from './native-helper';
import { dataSerialize, ios as iOSUtils } from './native-helper';

export { clearInterval, clearTimeout, setInterval, setTimeout } from '../timer';
export * from './common';
Expand Down Expand Up @@ -39,7 +39,8 @@ export function openUrl(location: string): boolean {
try {
const url = NSURL.URLWithString(location.trim());
if (UIApplication.sharedApplication.canOpenURL(url)) {
return UIApplication.sharedApplication.openURL(url);
UIApplication.sharedApplication.openURLOptionsCompletionHandler(url, dataSerialize({}), null);
return true;
}
} catch (e) {
// We Don't do anything with an error. We just output it
Expand Down
Loading








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/NativeScript/NativeScript/pull/10627/files

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy