openst / ost-wallet-sdk-react-native Goto Github PK
View Code? Open in Web Editor NEWOST Platform Wallet SDK for React Native
Home Page: https://ost.com
License: MIT License
OST Platform Wallet SDK for React Native
Home Page: https://ost.com
License: MIT License
{"error_code": "SESSION_NOT_FOUND", "error_info": {}, "error_message": "The device doesn't has any active session. Please authorize a session before doing any transaction. Workflow details provided at https://dev.ost.com/platform/docs/sdk/references ", "internal_error_code": "km_ts_st_2", "is_api_error": 0}
I have authorize my android device and trying to execute transaction but it throw error.
it's working in iOS but not in android.
In iOS 13 device deviceRegistered callback say
{
"error_code": "DEVICE_NOT_SETUP",
"error_message": "Unable to recognize the device. Please setup this device for the user using workflows provided at; https://dev.ost.com/platform/docs/sdk",
"internal_error_code": "n_ad_gcd_2",
"is_api_error": false
}
but in iOS 11.1 it working fine
I have try to clear all ost session
OstWalletSdk.logoutAllSessions(
userId,
this.workflowCallback
)
but sdk Interrupt the flow and say
{
"api_error": {
"code": "UNPROCESSABLE_ENTITY",
"error_data": [],
"internal_id": "a_s_s_mo_l_4",
"msg": "Token Holder is either logging out or already logged out."
},
"error_code": "API_RESPONSE_ERROR",
"error_info": {
"err": {
"code": "UNPROCESSABLE_ENTITY",
"error_data": [Array
],
"internal_id": "a_s_s_mo_l_4",
"msg": "Token Holder is either logging out or already logged out."
},
"success": false
},
"error_message": "Token Holder is either logging out or already logged out.",
"internal_error_code": "UNPROCESSABLE_ENTITY",
"is_api_error": true
}
{
"error_code": "INVALID_SESSION_SPENDING_LIMIT",
"error_message": "Spending limit provided is invalid. Spending limit should be in atto BT and can not be decimal value. Please inspect the value being sent is correct and not null, rectify and re-submit.",
"internal_error_code": "w_au_vp_2",
"is_api_error": false
}
I have trying to executeTransaction but nothing happen. sdk can't return completed or Interruped response
`export function executeTransaction(userId, tokenHolderAddresses, amounts, transactionType, meta) {
return (dispatch) => {
let workflowCallback = new OstWalletWorkFlowCallback();
workflowCallback.flowComplete = (workflowContext, contextEntity) => {
console.log("flowComplete");
console.log("workflowContext: ", workflowContext.WORKFLOW_TYPE);
console.log("executeTransaction: ", contextEntity);
dispatch(getBalance());
};
workflowCallback.flowInterruped = (workflowContext, { error }) => {
console.log("flowInterruped");
console.log("workflowContext: ", workflowContext.WORKFLOW_TYPE);
console.log("error: ", error);
};
OstWalletSdk.executeTransaction(
userId,
tokenHolderAddresses,
amounts,
transactionType,
meta,
workflowCallback
)
}
}`
{"error_code": "UNCAUGHT_EXCEPTION_HANDELED", "error_message": "TrustKit was initialized with a different network policy than the one configured in the App's manifest.", "internal_error_code": "rn_ownsm_i_1", "is_api_error": 0}
{"error_code": "INVALID_SESSION_SPENDING_LIMIT", "error_message": "Spending limit provided is invalid. Spending limit should be in atto BT and can not be decimal value. Please inspect the value being sent is correct and not null, rectify and re-submit.", "internal_error_code": "w_au_vp_2", "is_api_error": false}
Manifest merger failed : Attribute application@networkSecurityConfig value=(@xml/network_security_config) from AndroidManifest.xml:15:7-67
is also present at [com.ost:ost-wallet-sdk-android:2.4.1] AndroidManifest.xml:26:18-82 value=(@xml/ost_network_security_config).
Suggestion: add 'tools:replace="android:networkSecurityConfig"' to element at AndroidManifest.xml:7:5-117 to override.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.