Skip to content

Commit

Permalink
Merge pull request #11 from metriport/799-add-user-agent
Browse files Browse the repository at this point in the history
fix(package): add useragent to be able to access webview
  • Loading branch information
Orta21 authored Jul 17, 2023
2 parents 63eb834 + b1ba31c commit 605ad85
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion MetriportSDK.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'MetriportSDK'
s.version = '1.0.22'
s.version = '1.0.23'
s.summary = 'A Swift Library for Metriport API and Apple Health integrations.'

s.homepage = 'https://github.com/metriport/metriport-ios-sdk'
Expand Down
2 changes: 1 addition & 1 deletion Sources/MetriportSDK/MetriportWidget.swift
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public struct MetriportWidget: UIViewRepresentable, WebViewHandlerDelegate {
providers: [String]? = nil,
url: String? = nil) {
let config = WKWebViewConfiguration()

config.applicationNameForUserAgent = "Safari"
let webView = WKWebView(frame: .zero, configuration: config)

self.webView = webView
Expand Down

0 comments on commit 605ad85

Please sign in to comment.