Repository navigation
Stash Native 2.1.4
What's changed
Added
- Android:
StashNativeCardListener.onBrowserClosed()after external browser handoff (openBrowser, external payment).StashNativeCardListenerAdapterprovides an empty default. - Android: Chrome Custom Tabs use
startActivityForResultwithStashNativeCard.REQUEST_CODE_CUSTOM_TAB; hosts must forwardStashNativeCard.onActivityResultfrom the launching activity.ACTION_VIEWfallback still uses lifecycle-basedonBrowserClosed. - iOS: optional
stashNativeCardDidCloseBrowseronStashNativeCardDelegatewhenSFSafariViewControlleris dismissed (user Done orcloseBrowser), includingopenBrowserWithURL:and external payment paths.
StashNative SDK 2.1.4
Android
Download StashNative-2.1.4.aar and add to your project's libs folder.
dependencies {
implementation files('libs/StashNative-2.1.4.aar')
implementation 'androidx.appcompat:appcompat:1.6.1'
implementation 'androidx.browser:browser:1.7.0'
}iOS
Download StashNative-2.1.4.xcframework.zip, unzip, and add StashNative.xcframework to your Xcode project.
Alternatively, use Swift Package Manager with this repository URL.