Skip to content
Open
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -137,12 +137,6 @@ public void postMessage(final String data) {
mContext.startActivity(intent);
}
}

if (type.equals("BANK_OAUTH_URL")) {
String URL = _data.getString("url");
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(URL));
mContext.startActivity(intent);
}
} catch (JSONException e) {
Log.d("FL:ERROR", e.getMessage());
}
Expand Down
4 changes: 0 additions & 4 deletions v4/mobile/flutter/FastLink/lib/fastlinkView.dart
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,6 @@ class FastLinkView extends StatelessWidget {
String url = eventData["data"]["url"];
_launchURL(url);
}
if (eventData["type"] == "BANK_OAUTH_URL") {
String url = eventData["data"]["url"];
_launchURL(url);
}

if (eventData["type"] == "POST_MESSAGE") {
String action = eventData["data"]["action"];
Expand Down
11 changes: 0 additions & 11 deletions v4/mobile/ios-swift/FastLink/FastLink/FastLinkViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -123,17 +123,6 @@ extension FastLinkViewController: WKScriptMessageHandler {
UIApplication.shared.open(url)
}
}
//In this Sample App bank oauth url is opened in the Default browser
if(json["type"] as! String == "BANK_OAUTH_URL"){

if let data = json["data"] as? [String:Any] {
guard let url = URL(string: data["url"] as! String) else {
print("invalid URL")
return
}
UIApplication.shared.open(url)
}
}
print(json["type"] as Any)
}
}
Expand Down
11 changes: 0 additions & 11 deletions v4/mobile/react-native/FastLink/app/views/FastLinkView.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,17 +52,6 @@ const FastLinkContainerView = ({ route, navigation }) => {
}
})
}
if (parsedMessageData.type == 'BANK_OAUTH_URL') {
let url = parsedMessageData.data.url
//In this Sample App we are using the Linking module to open the URL in the default browser
Linking.canOpenURL(url).then(supported => {
if (supported) {
Linking.openURL(url)
} else {
Alert.alert('Alert', 'Opening url not supported')
}
})
}
}
}

Expand Down